cmd: fix wrong name for per-topic rss
This commit is contained in:
parent
99827b58af
commit
01ffdc6525
2 changed files with 10 additions and 2 deletions
|
@ -9,7 +9,11 @@
|
||||||
<h2 style="margin-left: 1rem; margin-bottom: 0;">{{page.category}}<i class="mdi mdi-tag" style="font-size: 2rem; color: #ee6e73;"></i></h2>
|
<h2 style="margin-left: 1rem; margin-bottom: 0;">{{page.category}}<i class="mdi mdi-tag" style="font-size: 2rem; color: #ee6e73;"></i></h2>
|
||||||
{% if site.data.theme.topic_rss and site.data.theme.topic_rss.category %}
|
{% if site.data.theme.topic_rss and site.data.theme.topic_rss.category %}
|
||||||
{% set category_rss = site.data.theme.topic_rss.category %}
|
{% set category_rss = site.data.theme.topic_rss.category %}
|
||||||
{% set rss_name = category_rss.name_lowercase? page.category.toLowerCase(): page.category %}
|
{% if category_rss.name_lowercase %}
|
||||||
|
{% set rss_name = page.tag.toLowerCase() %}
|
||||||
|
{% else %}
|
||||||
|
{% set rss_name = page.tag %}
|
||||||
|
{% endif %}
|
||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
{% if category_rss.atom_suffix %}
|
{% if category_rss.atom_suffix %}
|
||||||
<a href="{{ full_url_for(category_rss.prefix + rss_name + category_rss.atom_suffix) }}">Feed (Atom)</a>
|
<a href="{{ full_url_for(category_rss.prefix + rss_name + category_rss.atom_suffix) }}">Feed (Atom)</a>
|
||||||
|
|
|
@ -8,7 +8,11 @@
|
||||||
<h2 style="margin-left: 1rem; margin-bottom: 0;">{{page.tag}}<i class="mdi mdi-tag" style="font-size: 2rem; color: #ee6e73;"></i></h2>
|
<h2 style="margin-left: 1rem; margin-bottom: 0;">{{page.tag}}<i class="mdi mdi-tag" style="font-size: 2rem; color: #ee6e73;"></i></h2>
|
||||||
{% if site.data.theme.topic_rss and site.data.theme.topic_rss.tag %}
|
{% if site.data.theme.topic_rss and site.data.theme.topic_rss.tag %}
|
||||||
{% set tag_rss = site.data.theme.topic_rss.tag %}
|
{% set tag_rss = site.data.theme.topic_rss.tag %}
|
||||||
{% set rss_name = tag_rss.name_lowercase? page.tag.toLowerCase(): page.tag %}
|
{% if tag_rss.name_lowercase %}
|
||||||
|
{% set rss_name = page.tag.toLowerCase() %}
|
||||||
|
{% else %}
|
||||||
|
{% set rss_name = page.tag %}
|
||||||
|
{% endif %}
|
||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
{% if tag_rss.atom_suffix %}
|
{% if tag_rss.atom_suffix %}
|
||||||
<a href="{{ full_url_for(tag_rss.prefix + rss_name + tag_rss.atom_suffix) }}">Feed (Atom)</a>
|
<a href="{{ full_url_for(tag_rss.prefix + rss_name + tag_rss.atom_suffix) }}">Feed (Atom)</a>
|
||||||
|
|
Loading…
Reference in a new issue