
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.rdffile 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 thedefault.rhtmlfile 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.rhtmlto be used.
Tags: foaf · rails · typoNo Comments