Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2021-01-06 14:42:16 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2021-01-06 14:42:16 +0300
commit0a8ec4534132f8d5a672490c0e501cddadecff06 (patch)
tree886409ed066a7d77dc43abf41c42053b611a7890
parent7bec7a2ce45eba6376d5b3e9cbc5fb996edefa76 (diff)
config: add animateStyle parameter
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3a3d1f6..5bf0c36 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,6 +7,10 @@ languageCode = "en-us"
# Cutting off the page title to two chars for mobile (console-demo -> co)
titleCutting = true
+ # Set the animation style -- https://animate.style/
+ # To disable animations, please remove or comment animationStyle parameter
+ animateStyle = "animated zoomIn fast"
+
[[params.navlinks]]
name = "about/"
url = "about/"
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index c5478c1..5eb5d94 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -47,7 +47,7 @@
</div>
</div>
- <div class="container animated zoomIn fast">
+ <div class="container {{ .Site.Params.animateStyle }}" >
{{ block "main" . }}
{{ end }}
{{ partial "footer.html" . }}