diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 11 | ||||
| -rw-r--r-- | layouts/partials/sidebar-toc.html | 7 | ||||
| -rw-r--r-- | layouts/partials/sidebar.html | 11 |
3 files changed, 13 insertions, 16 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..c0a6d49 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ +<div class="sidebar-item"> + <p> + {{- with site.Params.footer }} + {{ . | safeHTML }} + {{- else }} + {{- with .Params.editor }}<p>Edited by {{ . }}, {{ now.Format "2006" }}.</p>{{ end }} + Built with <a href="https://github.com/sergeyklay/gohugo-theme-ed" target="_blank" rel="noopener noreferrer">Ed.</a> + Distributed under an MIT license. + {{- end }} + </p> +</div> diff --git a/layouts/partials/sidebar-toc.html b/layouts/partials/sidebar-toc.html index ee3a6f9..da7fd93 100644 --- a/layouts/partials/sidebar-toc.html +++ b/layouts/partials/sidebar-toc.html @@ -18,10 +18,5 @@ {{ end }} </nav> - <div class="sidebar-item"> - <p>Edited by {{ .Params.editor }}, {{ now.Format "2006" }}.</p> - <p> - Built with <a href="https://minicomp.github.io/ed/" target="_blank" rel="noopener noreferrer">Ed.</a> Distributed under an MIT license. - </p> - </div> + {{ partial "footer" . }} </aside> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 57bca9d..e6e4bd3 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -21,14 +21,5 @@ {{/* TODO: Add hypothesis support */}} </nav> - <div class="sidebar-item"> - <p> - {{- with site.Params.footer }} - {{ . | safeHTML }} - {{- else }} - Built with <a href="https://github.com/sergeyklay/gohugo-theme-ed" target="_blank" rel="noopener noreferrer">Ed.</a> - Distributed under an MIT license. - {{- end }} - </p> - </div> + {{ partial "footer" . }} </aside> |
