Skip to content

Commit

Permalink
feat(applause): add option to set applause_button_id
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Dec 5, 2019
1 parent 2cdeee6 commit 8eda9a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/_includes/applause_button.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.