Ability to turn off the fadein effect (#4)

* Ability to turn off the fadein effect

* Ability to disable fadein effect on blog posts

* Disable fadein on 404 and list pages
This commit is contained in:
Derik Evangelista 2017-05-05 12:03:05 +01:00 committed by Vicky
parent b1b90a10eb
commit 8bf5b9e365
5 changed files with 28 additions and 20 deletions

View file

@ -33,6 +33,8 @@ highlightjs = true # Syntax highlighting
lang = "en" lang = "en"
footertext = "" # Text to show in footer (overrides default text) footertext = "" # Text to show in footer (overrides default text)
fadein = true # Turn on/off the fade-in effect
showblog = true # Show Blog section on home page showblog = true # Show Blog section on home page
showallposts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page showallposts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page
showlatest = true # Show latest blog post summary showlatest = true # Show latest blog post summary

View file

@ -2,18 +2,18 @@
<div class="section" id="top"><!-- Parent section --> <div class="section" id="top"><!-- Parent section -->
<div class="container hero is-medium has-text-centered fade-in one"><!-- Begin Title --> <div class="container hero is-medium has-text-centered {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">404</h1> <h1 class="bold-title is-1">404</h1>
</div><!-- End Title --> </div><!-- End Title -->
<!-- Everything below fades in two! --> <!-- Everything below fades in two! -->
<div class="section fade-in two"> <div class="section {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar --> <div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }} {{ partial "nav-single.html" . }}
</div><!-- End Nav bar --> </div><!-- End Nav bar -->
<div class="container fade-in two top-pad"><!-- Begin blurb --> <div class="container {{ if .Site.Params.fadein }} fade-in two {{ end }} top-pad"><!-- Begin blurb -->
Oops! Either you've found a bug (in which case, <a href="mailto:{{ .Site.Params.email }}">please tell me</a>) or you're just making things up. This page doesn't exist! Oops! Either you've found a bug (in which case, <a href="mailto:{{ .Site.Params.email }}">please tell me</a>) or you're just making things up. This page doesn't exist!
</div><!-- End blurb --> </div><!-- End blurb -->

View file

@ -2,12 +2,12 @@
<div class="section" id="top"><!-- Parent section --> <div class="section" id="top"><!-- Parent section -->
<div class="container hero fade-in one"><!-- Begin Title --> <div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.firstname }}'s Blog</h1> <h1 class="bold-title is-1">{{ .Site.Params.firstname }}'s Blog</h1>
</div><!-- End Title --> </div><!-- End Title -->
<!-- Everything below fades in two! --> <!-- Everything below fades in two! -->
<div class="section no-padding fade-in two"> <div class="section no-padding {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar --> <div class="container"><!-- Begin Nav bar -->
{{ partial "nav-list.html" . }} {{ partial "nav-list.html" . }}

View file

@ -2,18 +2,18 @@
<div class="section" id="top"><!-- Parent section --> <div class="section" id="top"><!-- Parent section -->
<div class="container hero fade-in one"><!-- Begin Title --> <div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.firstname }}'s Blog</h1> <h1 class="bold-title is-1">{{ .Site.Params.firstname }}'s Blog</h1>
</div><!-- End Title --> </div><!-- End Title -->
<!-- Everything below fades in two! --> <!-- Everything below fades in two! -->
<div class="section fade-in two"> <div class="section {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar --> <div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }} {{ partial "nav-single.html" . }}
</div><!-- End Nav bar --> </div><!-- End Nav bar -->
<div class="container fade-in two"><!-- Begin blog title container --> <div class="container {{ if .Site.Params.fadein }} fade-in two {{ end }}"><!-- Begin blog title container -->
<h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="post-data"> <div class="post-data">
{{ .Date.Format .Site.Params.dateform }} | {{ .Date.Format .Site.Params.dateform }} |
@ -48,7 +48,7 @@
</div><!-- End blog title container --> </div><!-- End blog title container -->
<div class="container markdown fade-in two top-pad"><!-- Begin blog post content --> <div class="container markdown {{ if .Site.Params.fadein }} fade-in two {{ end }} top-pad"><!-- Begin blog post content -->
{{ .Content }} {{ .Content }}
</div><!-- End blog post content --> </div><!-- End blog post content -->

View file

@ -16,16 +16,22 @@
<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 fade-in one">Hi, I'm {{ .Site.Params.firstname }}.</h1> <h1 class="bold-title {{ if .Site.Params.fadein }}fade-in one{{ end }}">
<h3 class="subtitle is-3 fade-in two">{{ .Site.Params.tagline }}</h3> Hi, I'm {{ .Site.Params.firstname }}.
</h1>
<h3 class="subtitle is-3 {{ if.Site.Params.fadein }} fade-in two{{ end }}">
{{ .Site.Params.tagline }}
</h3>
<!-- End title and tagline --> <!-- End title and tagline -->
<!-- Some social icons --> <!-- Some social icons -->
<div class="fade-in three">{{ partial "social.html" . }}</div> <div class="{{ if .Site.Params.fadein }}fade-in three{{ end }}">
{{ partial "social.html" . }}
</div>
<!-- End top social icons --> <!-- End top social icons -->
</div> </div>
</div> <!-- Hero body title end --> </div> <!-- Hero body title end -->
<!-- Hero foot has nav bar --> <!-- Hero foot has nav bar -->
<div class="hero-foot fade-in three"> <div class="hero-foot {{ if .Site.Params.fadein }}fade-in three{{ end }}">
<hr> <hr>
<nav class="nav-center"> <nav class="nav-center">
<a class="nav-item" href="#about">About</a> <a class="nav-item" href="#about">About</a>
@ -43,7 +49,7 @@
</div><!-- End of top section --> </div><!-- End of top section -->
<!-- Everything below fades in three! --> <!-- Everything below fades in three! -->
<div class="section no-padding fade-in three"> <div class="section no-padding {{ if .Site.Params.fadein }}fade-in three{{ end }}">
<!-- Tell them all about it! --> <!-- Tell them all about it! -->
<div class="section" id="about"> <div class="section" id="about">