Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/g1eny0ung/hugo-theme-dream.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexampleSite/config.toml2
-rw-r--r--layouts/partials/back.html14
-rw-r--r--layouts/partials/nav.html2
3 files changed, 12 insertions, 6 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 73c735d..6cc65b9 100755
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -76,6 +76,8 @@ theme = "hugo-theme-dream"
# fixedNav = true
# collapsibleTags = true
# collapseBySummary = true
+ # disableFlip = true
+ # hideBackSocialLinks = true
# [params.advanced]
# customCSS = ["css/custom.css"]
diff --git a/layouts/partials/back.html b/layouts/partials/back.html
index 9d1f745..a003f0c 100644
--- a/layouts/partials/back.html
+++ b/layouts/partials/back.html
@@ -12,12 +12,14 @@
</div>
{{ end }}
- <div class="sixteen wide mobile eight wide tablet four wide computer column dream-column">
- <article class="ui segment">
- <div class="ui medium header">{{ i18n "socialLinks" }}</div>
- {{ partialCached "socials.html" (dict "Site" .Site "IconSize" "large") }}
- </article>
- </div>
+ {{ if not .Site.Params.hideBackSocialLinks }}
+ <div class="sixteen wide mobile eight wide tablet four wide computer column dream-column">
+ <article class="ui segment">
+ <div class="ui medium header">{{ i18n "socialLinks" }}</div>
+ {{ partialCached "socials.html" (dict "Site" .Site "IconSize" "large") }}
+ </article>
+ </div>
+ {{ end }}
<div class="sixteen wide mobile eight wide tablet four wide computer column dream-column">
{{ if .Site.Copyright }}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 81bd189..b3eeb5b 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -5,9 +5,11 @@
{{ else }}
<nav class="ui secondary menu dream-menu dream-nav">
{{ end }}
+ {{ if not .Site.Params.disableFlip }}
<a class="item dream-flip-toggle" title="{{ i18n "flip" }}">
<i class="large link bullseye icon"></i>
</a>
+ {{ end }}
<a class="item" href="{{ .Site.BaseURL }}" title="{{ i18n "home" }}">
<i class="large link home icon"></i>
</a>