You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently, when tagging .rst files, we use this syntax,
with code like this:
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
totags: my_tags
throughout the cass and osl sites not just for consistency, but also because it appears to be The Pelican Way.The text was updated successfully, but these errors were encountered: