Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

No real support for tags #146

Open
pfctdayelise opened this issue Jul 15, 2013 · 1 comment
Open

No real support for tags #146

pfctdayelise opened this issue Jul 15, 2013 · 1 comment

Comments

@pfctdayelise
Copy link

Hi, I am not sure if this project is very active now, but in case it is... I see that the YAML header reserves a "tags" field, and the website says that it "supports" tags. But it seems to me it doesn't really. The tags are not displayed (in the default blog example anyway) and no URLS with /tags/ or /tag/ are built. Am I missing something or is this yet to be completed?

@wxl
Copy link

wxl commented Dec 13, 2014

First off, this is a bug against the blogofile_blog plugin, so you may want to file an issue there. As you can tell from searching for "tag OR tags", tags aren't not used very much at all. The templates need to be modified to support tags. If you want to include them on a post, for example, you can add ${", ".join(post.tags)} to post.mako and it will replace that with a comma separated list of tags.

If you want links, that's where we need a controller. It needs a tags.py kind of like categories.py in order to build the actual links and put everything in the right place. The templates build a list of category links, but that's based on the knowledge that the controller takes care of putting them there.

Hopefully that will get development started and will give you enough that you can at least get by with tags displayed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants