Skip to content
Permalink
Browse files

feat(applause): add option to set applause_button_id

  • Loading branch information
talha131 committed Dec 5, 2019
1 parent 2cdeee6 commit 8eda9a4cc7c588ff09a520e9f7fa183d1fb11031
Showing with 7 additions and 1 deletion.
  1. +7 −1 templates/_includes/applause_button.html
@@ -3,9 +3,15 @@
article.applause_button_filter == "off") and article.applause_button_filter !=
"on" %}

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

<script src="{{ SITEURL }}/theme/applause-button/applause-button.js"></script>
<div class="applause_button">
<applause-button> </applause-button>
<applause-button url={{identifier}}> </applause-button>
</div>

{% endif %} {% endmacro %}

0 comments on commit 8eda9a4

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