Skip to content

Commit

Permalink
fixup! ♻ Refactor: remove unnecessary Addthis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskyfung committed Mar 21, 2024
1 parent 20b5154 commit e76f58a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/blocks/share-buttons.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- if site.addthis.pid and site.addthis.wid -%}
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<amp-addthis width="320" height="55"
{%- if site.consent == true %}
Expand All @@ -8,3 +9,4 @@
data-widget-type="inline"
style="margin-left:-10px;">
</amp-addthis>
{%- endif -%}
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
<script async custom-element="amp-font" src="https://cdn.ampproject.org/v0/amp-font-0.1.js"></script>
<script async custom-element="amp-fx-collection" src="https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"></script>
{%- if layout.amp.addthis or page.amp.addthis -%}
{%- if site.addthis.pid and site.addthis.wid -%}
<script async custom-element="amp-addthis" src="https://cdn.ampproject.org/v0/amp-addthis-0.1.js"></script>
{%- endif -%}
{%- endif -%}
{%- if layout.amp.iframe or page.amp.iframe or true -%}
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
Expand Down

0 comments on commit e76f58a

Please sign in to comment.