diff options
author | Max le Fou <buttbadger@gmail.com> | 2020-04-02 14:42:59 +0300 |
---|---|---|
committer | Max le Fou <buttbadger@gmail.com> | 2020-04-02 14:42:59 +0300 |
commit | 0770a2df4d72caf2f52b7b4ab2a1e993c5de9afb (patch) | |
tree | 91e44ff2383daaa5656c88208bc5a0c130e67c36 | |
parent | 8c6dfbf1c4db1381fc2409a6d08fdb95007ffb75 (diff) |
added animation options support
-rw-r--r-- | exampleSite/config.toml | 9 | ||||
-rw-r--r-- | layouts/partials/footer.html | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 319b98f..4dec7a5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -31,6 +31,15 @@ preserveTaxonomyNames = true github = "https://github.com" gitlab = "https://gitlab.com" + # Enables or disables the loading animations. false activates them. Default is false. + loadfastload = false + + # Sets the speed for the page loading effect. Default is 1.0. + loadspeedfactor = 1.0 + + # Enables or disables the second flyby cursor. Default is false. + loadonepass = false + [menu] [[menu.main]] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 283cc07..4af4279 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -35,7 +35,11 @@ <script src="{{ "/js/bootstrap-typeahead.js" | relURL }}"></script> <script src="{{ "/js/bootstrap-affix.js" | relURL }}"></script> <script> - _386 = { onePass: true, speedFactor: 1.0 }; + _386 = { + fastLoad:{{ .Site.Params.loadfastload }}, + onePass:{{ .Site.Params.loadonepass }}, + speedFactor:{{ .Site.Params.loadspeedfactor }} + }; // Free updated script to get the actual year !! no more document.write or stuff!! function ThisYear() { |