diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2021-01-06 14:42:16 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2021-01-06 14:42:16 +0300 |
commit | 0a8ec4534132f8d5a672490c0e501cddadecff06 (patch) | |
tree | 886409ed066a7d77dc43abf41c42053b611a7890 | |
parent | 7bec7a2ce45eba6376d5b3e9cbc5fb996edefa76 (diff) |
config: add animateStyle parameter
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 |
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" . }} |