Hacking On Serendipity
Having recently been spending time with my blog I wanted to make it more SEO friendly, so I have been hacking it up a bit to generate bits of data all over the place. One of the hacks I have implemented is the keywords meta-tag: First I dropped this in my index.tpl
<meta name="Keywords" content="" />
Then I sprinkled this in for the content of the tag (you know, in the content=”” part)
{foreach from=$entries item="dategroup"}
{foreach from=$dategroup.entries item="entry"}
{if $entry.title}{$entry.title}, {/if}
{/foreach}
{/foreach}
Voilà! The homepage generates the keywords list from all the entries on the page, and the individual pages generate the title only for that particular page. Now this wont help a whole lot, but it’s something anyway as one day I want to use Serendipity for a business site front-end.
About this entry
You’re currently reading “Hacking On Serendipity”, an entry on SubnetSurfer
- Published:
- 12/08/2007 9:56 am
- Tags:
- development, php, programming, templates, urls and web
No Comments
Jump to comment form | Comments rss