feat: support disabling animations

This commit is contained in:
Rob Paisley
2024-10-07 14:06:15 -04:00
parent 51beaa3134
commit 9b2c3e8497
10 changed files with 12 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<button id="share-btn" class="hdr-btn" title="{{i18n "share"}}">{{- partial "svg.html" (dict "context" . "name" "share") -}}</button>
<div id="share-links" class="animated fast">
<div id="share-links" {{- if ne false .Site.Params.usesAnimation }} class="animated fast" {{- end -}}>
{{ $title := .Title }}
{{ $url := printf "%s" .Permalink }}
{{ $author := (.Params.author | default .Site.Params.author.name) }}