Skip to content

Commit c82cdcd

Browse files
committed
Add backwards compatibility for twitter share button
1 parent 6c20301 commit c82cdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/share_icons.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{- with $ShareButtons }}{{ $custom = true }}{{ end }}
1515

1616
<div class="share-buttons">
17-
{{- if (cond ($custom) (in $ShareButtons "x") (true)) }}
17+
{{- if (cond ($custom) (in $ShareButtons "x") (true)) | or (cond ($custom) (in $ShareButtons "twitter") (true)) }}
1818
<a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on x"
1919
href="https://x.com/intent/tweet/?text={{ $title }}&amp;url={{ $pageurl }}&amp;hashtags={{- $.Scratch.Get "tags" -}}">
2020
<svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor">

0 commit comments

Comments
 (0)