Allow to have the fade-in effect only on main page (#78)

This commit is contained in:
Kevin Ottens 2018-09-30 19:32:21 +02:00 committed by Hanzei
parent 7d65d6ca14
commit bab5773e9f
2 changed files with 5 additions and 4 deletions

View file

@ -9,6 +9,7 @@ DefaultContentLanguage = "en" # Default language fo
favicon = "/img/fav.ico" # Path to favicon file favicon = "/img/fav.ico" # Path to favicon file
showRSSButton = false # Show rss button in navigation showRSSButton = false # Show rss button in navigation
fadeIn = true # Turn on/off the fade-in effect fadeIn = true # Turn on/off the fade-in effect
fadeInIndex = false # Turn on/off the fade-in effect on the index page even if fade-in was otherwise turned off
dateFormat = "Jan 2, 2006" dateFormat = "Jan 2, 2006"
email = "youremail@email.com" # E-mail address for contact section email = "youremail@email.com" # E-mail address for contact section
# customCSS = ["foo.css"] # Include custom css files placed under assets/ # customCSS = ["foo.css"] # Include custom css files placed under assets/

View file

@ -15,15 +15,15 @@
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container has-text-centered">
<!-- Title and tagline --> <!-- Title and tagline -->
<h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}"> <h1 class="bold-title {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in one{{ end }}">
{{ .Title }} {{ .Title }}
</h1> </h1>
<div class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}"> <div class="subtitle is-3 {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in two{{ end }}">
{{ .Content }} {{ .Content }}
</div> </div>
<!-- End title and tagline --> <!-- End title and tagline -->
<!-- Some social icons --> <!-- Some social icons -->
<div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}"> <div class="{{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in three{{ end }}">
{{ partial "home/social.html" . }} {{ partial "home/social.html" . }}
</div> </div>
<!-- End top social icons --> <!-- End top social icons -->
@ -34,7 +34,7 @@
{{ end }} {{ end }}
<!-- Done with Hero --> <!-- Done with Hero -->
<div class="{{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}"> <div class="{{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in three{{ end }}">
<!-- Tell them all about it! --> <!-- Tell them all about it! -->
{{ partial "nav.html" . }} {{ partial "nav.html" . }}