duilio / pelican-octopress-theme

Octopress default theme copied for pelican
MIT License
149 stars 119 forks source link

Asides config #51

Closed StephenPCG closed 9 years ago

StephenPCG commented 10 years ago

use meta to control asides

title: awesome title
author: awesome author
asides: recentpost, categories, tags, ...

Due to merge conflict with branch sidebar-switch, I have merge that branch into this one.

duilio commented 10 years ago

This is a strange feature to control at post level. Is there are reason why this is not preferable to have as blog level setting?

StephenPCG commented 10 years ago

Hi duilio, initially I just wanted to control it at page level (for per page), not for per post. The motivation is that, I don't want to show a sidebar for pages like "Biography", and "Recent Posts aside" is meaningless for pages like "Archive". For some special cases, I may want to add special aside for certain post, for example I need a "Article Background" aside for a specific post.

Anyway, I thinks this patch just provides possibility to control the sidebar. Without any configuration, it just works like before. But if anyone would like a fine grained control like me, he/she has the option.

duilio commented 10 years ago

ok, fine :-) I would just like two bits of docs in the readme file, i guess you can copy & paste what you've written in the description of this pull request.