Skip to content
Permalink
Browse files

feat(applause): simplify filter option

  • Loading branch information
talha131 committed Dec 5, 2019
1 parent 8eda9a4 commit 9f8b60fc3cbc08e7e21cef08f7e44658131677dd
Showing with 6 additions and 7 deletions.
  1. +0 −1 documentation/pelicanconf.py
  2. +3 −3 templates/_includes/_defaults.html
  3. +3 −3 templates/_includes/applause_button.html
@@ -185,4 +185,3 @@
}
DISQUS_FILTER = True
UTTERANCES_FILTER = True
APPLAUSE_BUTTON_FILTER = False
@@ -219,8 +219,8 @@
{% set SEARCH_URL = SEARCH_URL %}
{% endif %}

{% if not APPLAUSE_BUTTON_FILTER %}
{% set APPLAUSE_BUTTON_FILTER = False %}
{% if not APPLAUSE_BUTTON %}
{% set APPLAUSE_BUTTON = False %}
{% else %}
{% set APPLAUSE_BUTTON_FILTER = APPLAUSE_BUTTON_FILTER %}
{% set APPLAUSE_BUTTON = APPLAUSE_BUTTON %}
{% endif %}
@@ -1,7 +1,7 @@
{% macro applause_button(article) %} {% from '_includes/_defaults.html' import
APPLAUSE_BUTTON_FILTER with context %} {%if (not APPLAUSE_BUTTON_FILTER or
article.applause_button_filter == "off") and article.applause_button_filter !=
"on" %}
APPLAUSE_BUTTON with context %}

{%if (APPLAUSE_BUTTON or article.applause_button == "on") and article.applause_button != "off" %}

{% set url = SITEURL+ '/' + article.url %}
{% set identifier = SITEURL+ '/' + article.url %}

0 comments on commit 9f8b60f

Please sign in to comment.
You can’t perform that action at this time.