mirror of https://github.com/lxndrblz/anatole.git

Karol Kania
04.46.2020 36ee60a4ee028999c0ea3ee14216f49f9a704a37
animatedLoadingSetting - animations should be enabled by default -- backward compatible behaviour
6 files modified
12 ■■■■ changed files
exampleSite/config.toml 2 ●●● patch | view | raw | blame | history
layouts/_default/list.html 2 ●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
layouts/index.html 2 ●●● patch | view | raw | blame | history
layouts/partials/navbar.html 2 ●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 2 ●●● patch | view | raw | blame | history
exampleSite/config.toml
@@ -24,7 +24,7 @@
customJs = []
mainSections = ["post"]
images = ["images/site-feature-image.png"]
animatedLoading = true
doNotLoadAnimations = false
# Google Site Verification
#googleSiteVerify = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
layouts/_default/list.html
@@ -1,5 +1,5 @@
{{ define "main" }}
    <div class="archive {{ with .Site.Params.animatedLoading }} animated fadeInDown {{ end }}">
    <div class="archive {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
        <ul class="list-with-title">
            {{ range .Data.Pages.GroupByDate "2006" }}
                <div class="listing-title">{{ .Key }}</div>
layouts/_default/single.html
@@ -1,5 +1,5 @@
{{ define "main" }}
    <div class="post {{ with .Site.Params.animatedLoading }} animated fadeInDown {{ end }}">
    <div class="post {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
        <div class="post-content">
            <div class="post-title">
layouts/index.html
@@ -1,7 +1,7 @@
{{ define "main" }}
    {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
    {{ range $paginator.Pages }}
        <div class="post {{ with .Site.Params.animatedLoading }} animated fadeInDown {{ end }}">
        <div class="post {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
            <div class="post-title">
                <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a>
                </h3>
layouts/partials/navbar.html
@@ -1,4 +1,4 @@
<div class="page-top {{ with .Site.Params.animatedLoading }} animated fadeInDown {{ end }}">
<div class="page-top {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
    <a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
        <span aria-hidden="true"></span>
        <span aria-hidden="true"></span>
layouts/partials/sidebar.html
@@ -1,4 +1,4 @@
<div class="sidebar {{ with .Site.Params.animatedLoading }} animated fadeInDown {{ end }}">
<div class="sidebar{{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
    <div class="logo-title">
        <div class="title">
            <img src="{{ .Site.Params.profilePicture | absURL }}" alt="profile picture">