Removed DISABLE_PAGE_LINKS as hidden status is suffisient. Added configuration to disable disqus comments
This commit is contained in:
parent
c9e753d425
commit
b8589d74ec
3 changed files with 3 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
|||
when=article.locale_date,
|
||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||
|
||||
{% if DISQUS_SITENAME %}
|
||||
{% if DISQUS_SITENAME and DISQUS_COMMENT_COUNT %}
|
||||
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -91,17 +91,15 @@
|
|||
|
||||
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
||||
|
||||
{% if (pages and not DISABLE_PAGE_LINKS) or LINKS %}
|
||||
{% if pages or LINKS %}
|
||||
<nav>
|
||||
<ul class="list">
|
||||
{%if not DISABLE_PAGE_LINKS %}
|
||||
{% if not PAGES_SORT_ATTRIBUTE -%}
|
||||
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
||||
{%- endif %}
|
||||
{% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for name, link in LINKS %}
|
||||
{% if DISABLE_PAGE_BLANK_TARGET %}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
when=article.locale_date,
|
||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||
|
||||
{% if DISQUS_SITENAME %}
|
||||
{% if DISQUS_SITENAME and DISQUS_COMMENT_COUNT %}
|
||||
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue