Steve Flinter’s blog

Musing on science and technology in Ireland

Steve Flinter’s blog header image 2

Now with FOAF

May 9th, 2007 by steve

Thanks to this entry from Aidan Finn, who incidentally is now working in the SFI funded DERI, I finally got around to putting up a simple FOAF file on my blog.

Adian’s post is pretty clear, but there are a few minor adjustments necessary to get it to work in Typo:

  • The foaf.rdf file should be created in the ~/typo-4.1.1/public/ directory.
  • To create the auto-discover link (point 3 in Aidan’s steps), put the following in the <head> of the default.rhtml file in your theme (e.g. ~/typo-4.1.1/themes/azure/layout/default.rhtml):

<%= stylesheet_link_tag "/foaf.rdf", :media => 'all', :rel => 'meta', :type => 'application/rdf+xml', :title => 'FOAF' %>

  • Don’t forget to empty the fragment cache in Typo’s admin panel to force the new default.rhtml to be used.

Tags:   · · No Comments