Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

tags are only processed in posts, not in pages #1014

Closed
damiencourousse opened this Issue · 6 comments

3 participants

@damiencourousse

hello !

I am a new user of Nikola v6.2.

I cannot have tags generated for pages (aka stories), but the tags are correctly processed for posts.
How to configure the build so that tags are not only searched in posts ?

For example with this configuration :
(nikola init --demo)

POSTS = (
    ("posts/*.rst", "posts", "post.tmpl"),
    ("posts/*.txt", "posts", "post.tmpl"),
)
PAGES = (
    ("stories/*.rst", "stories", "story.tmpl"),
    ("stories/*.txt", "stories", "story.tmpl"),
)

NAVIGATION_LINKS = {
    DEFAULT_LANG: (
        ('/stories/news.html', 'News'),
        ('/categories/index.html', 'Tags'),
        ('/rss.xml', 'RSS'),
    ),
}

The generated file categories/index.html does only show the tags contained in the posts, but not in the pages.

Is it a problem of configuration, or a bug ?

regards,
Damien

@Kwpolska
Owner

I personally would call it an user error, a feature, expected behavior — as tags for pages seem kinda nonsense, at least in my opinion. @ralsina, what’s yours?

@ralsina
Owner

Well, it's something that is not in the "of course it should work that way" category.

We are allowing tags in pages, and treating them differently from tags in posts. So, we should have a discussion about how this works best, perhaps comparing with other similar tools.

@damiencourousse
@ralsina
Owner

@damiencourousse well, good news and bad news ;-)

Bad news: right now, you can't do what you want.

Good news: we are discussing whether doing that is a good idea or not, and if yes, how to do it.

@ralsina ralsina modified the milestone: v6.5.0, v6.4.0
@ralsina ralsina modified the milestone: v7.0.0, v6.5.0
@Kwpolska Kwpolska modified the milestone: v7.1.0, v7.0.0
@Kwpolska
Owner

How is this? Should we (a) reject this, because integrating this can be problematic? (also, nobody else does this); or (b) continue with this?

@Kwpolska Kwpolska modified the milestone: v7.2.0, v7.3.0
@ralsina
Owner

I say a).

@ralsina ralsina closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.