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,4 +1,4 @@
<footer id="site-footer" class="section-inner thin animated fadeIn faster">
<footer id="site-footer" class="section-inner thin {{- if ne false .Site.Params.usesAnimation }} animated fadeIn faster {{- end -}}">
<p>
&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author.name }}</a>
&#183; {{ .Site.Params.footerCopyright | safeHTML }}

View File

@ -1,4 +1,4 @@
<header id="site-header" class="animated slideInUp">
<header id="site-header" {{- if .Site.Params.usesAnimation }} class="animated slideInUp" {{- end -}}>
<div class="hdr-wrapper section-inner">
<div class="hdr-left">
<div class="site-branding">
@ -21,7 +21,7 @@
</div>
</div>
</header>
<div id="mobile-menu" class="animated fast">
<div id="mobile-menu" {{- if ne false .Site.Params.usesAnimation }} class="animated fast" {{- end -}}>
<ul>
{{- range .Site.Menus.main }}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>

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) }}