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

github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer/footer.html')
-rw-r--r--layouts/partials/footer/footer.html34
1 files changed, 29 insertions, 5 deletions
diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html
index 1fe0e81..bab0909 100644
--- a/layouts/partials/footer/footer.html
+++ b/layouts/partials/footer/footer.html
@@ -3,11 +3,35 @@
<footer class="footer">
<div class="divider">
<div class="lmr">
- <p class="caption">
- {{ with $.Site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }}
- </p>
- {{ if $.Param "showPoweredBy" }}
- <p class="caption">Powered by <a href="https://gohugo.io/" rel="noreferrer">Hugo</a> and the <a href="https://github.com/zzossig/hugo-theme-zdoc" rel="noreferrer">zDoc theme</a></p>
+ {{ with .Params.footer }}
+ <div class="footer__section--wrapper">
+ {{ range .sections }}
+ <div class="footer__section">
+ <div class="footer__section--title">
+ {{ .title }}
+ </div>
+ <ul>
+ {{ range .links }}
+ <a href="{{ .link }}" class="footer__section--link" target="_blank" rel="noreferrer">
+ {{ .title }}
+ </a>
+ {{ end }}
+ </ul>
+ </div>
+ {{ end }}
+ </div>
+ {{ with .contents }}
+ <div class="footer__contents {{ if .applySinglePageCss }}single__contents{{ end }}">
+ {{ .markdown | markdownify }}
+ </div>
+ {{ end }}
+ {{ else }}
+ <p class="caption">
+ {{ with $.Site.Copyright }}{{ replace . "{year}" now.Year | markdownify }}{{ end }}
+ </p>
+ {{ if $.Param "showPoweredBy" }}
+ <p class="caption">Powered by <a href="https://gohugo.io/" rel="noreferrer">Hugo</a> and the <a href="https://github.com/zzossig/hugo-theme-zdoc" rel="noreferrer">zDoc theme</a></p>
+ {{ end }}
{{ end }}
</div>
</div>