diff options
author | Fahim-Ferdous <fahimferdous1312@gmail.com> | 2022-07-11 17:18:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 17:18:01 +0300 |
commit | 55d86a6eae22884c3cf12d84d36c6940e52dec22 (patch) | |
tree | 6a54eebd03667a54614e40aa83d6059bb26ec685 | |
parent | 8f5db7b70348d63e8129c2d316bc0bea8422131e (diff) |
* Added option `hideBackSocialLinks`
* Added option `disableFlip`
* Language picker
* Added bn.toml
* Prettify language picker
* Fixed home button for translated pages
* Revert "Fixed home button for translated pages"
This reverts commit 90c58d0dd05e6ea3f532df7e56fee2da3a2f3ea5.
* Revert "Prettify language picker"
This reverts commit 99d77d3e7e5b80ab6818b5178984eeb39f20d937.
* Revert "Added bn.toml"
This reverts commit 2d821f9d2aadc51d4e1e6cf845c96043b48b0135.
* Revert "Language picker"
This reverts commit 63174992598ed614fe285168c9894520437d288f.
Co-authored-by: Fahim Ferdous <fahimferdous401@gmail.com>
-rwxr-xr-x | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/back.html | 14 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
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> |