cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

Author meta tag support #84

Closed tjstein closed 10 years ago

tjstein commented 13 years ago

By including an author def in toto.rb, you can add the following in your layouts to generate the author meta tag:

<meta name="author" content="<%= author %>" />
ixti commented 13 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).