Closed tjstein closed 10 years ago
You can access @config
from layout, basically I proposed almost the same pull request (but then closed) with baseurl
. But then I realized that, first of all it breaks main concept - toto is not a blogging platform or CMS, it's just a blog. If you want to put something in layout - put it directly there, what's the point for extra code just to put one single line :))
Anyway, you can easily put:
<meta name="author" content="<%= @config[:author] %>" />
to achieve the same without your patch. But as I said before, I guess even this is an overkill (at least I found it for myself).
By including an author def in toto.rb, you can add the following in your layouts to generate the author meta tag: