feat: markdownify copyright-line

This commit is contained in:
Jan Raasch 2020-07-08 19:26:00 +02:00
parent b7d9750192
commit 7defcb60fd
2 changed files with 8 additions and 6 deletions

View file

@ -13,6 +13,7 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant"
[params] [params]
# A "copyright"-line to be added at the bottom of the page. # A "copyright"-line to be added at the bottom of the page.
# Hint: Markdown is supported in here as well. So you may e.g. add a link to your legal imprint-page.
copyright = "© Jane Doe" copyright = "© Jane Doe"
# The "description" of your website. This is used in the meta data of your generated html. # The "description" of your website. This is used in the meta data of your generated html.
@ -35,5 +36,6 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant"
# This theme will, by default, inject a design-by-line at the bottom of the page. # This theme will, by default, inject a design-by-line at the bottom of the page.
# You can turn it off, but we would really appreciate if you dont :-) # You can turn it off, but we would really appreciate if you dont :-)
# hidedesignbyline = true # hidedesignbyline = true
[params.meta] [params.meta]
keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such" keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such"

View file

@ -1,6 +1,6 @@
<footer class="site-footer"> <footer class="site-footer">
<div class="inner"> <div class="inner">
{{ with .Site.Params.copyright }}<section class="copyright">{{ . }}</section>{{ end }} {{ with .Site.Params.copyright }}<section class="copyright">{{ . | markdownify }}</section>{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section> <section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}<section> {{ if ne .Site.Params.hidedesignbyline true }}<section>
<a href="https://themes.gohugo.io/hugo-scroll/">Design</a> template built with ♥️ by <a href="https://www.janraasch.com" title="Jan Raasch">Jan Raasch</a> <a href="https://themes.gohugo.io/hugo-scroll/">Design</a> template built with ♥️ by <a href="https://www.janraasch.com" title="Jan Raasch">Jan Raasch</a>