Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supporting multiple tags #64

Open
leian7 opened this issue Dec 9, 2016 · 0 comments
Open

supporting multiple tags #64

leian7 opened this issue Dec 9, 2016 · 0 comments

Comments

@leian7
Copy link
Contributor

leian7 commented Dec 9, 2016

Currently, when tagging .rst files, we use this syntax,

tag: frontpage

with code like this:

{% if OSL_HOME_EXTRAS %}
    {% for page in pages %} 
        {% if page.tag == FRONTPAGE %}
            {{ page.content }}
        {% endif %}
    {% endfor %}
{% endif %}

This works for now since we only have one tag "frontpage" for just one article, "about.rst," for both the osl and the cass sites. However, when we do add more tags like tag: frontpage, awesome, the desired functionality breaks, sincepage.tag must equal FRONTPAGE exactly, but it wouldn't. The way to resolve this issue would be to replace {% if page.tag == FRONTPAGE %} with {% if FRONTPAGE in page.tag %}.
In addition, it would be nice to change tag: my_tags to tags: my_tags throughout the cass and osl sites not just for consistency, but also because it appears to be The Pelican Way.

andrewda pushed a commit that referenced this issue Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant