Browse Source

added animation options support

pull/1/head
Max le Fou 5 years ago
parent
commit
0770a2df4d
  1. 9
      exampleSite/config.toml
  2. 6
      layouts/partials/footer.html

9
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]]

6
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() {

Loading…
Cancel
Save