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]
# 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"
# The "description" of your website. This is used in the meta data of your generated html.
@ -26,14 +27,15 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant"
# See https://gohugo.io/templates/internal#twitter-cards and
# https://gohugo.io/templates/internal#open-graph.
images = ["/images/cover-image.jpg"]
# Another "title" :-). This one is used as the site_name on the Hugo's internal
# opengraph structured data template.
# Another "title" :-). This one is used as the site_name on the Hugo's internal
# opengraph structured data template.
# See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
title = "Jane Doe - Nutrition Coach & Chef Consultant"
# 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 :-)
# hidedesignbyline = true
[params.meta]
keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such"

View file

@ -1,9 +1,9 @@
<footer class="site-footer">
<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>
{{ 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>
</section>{{ end }}
</div>
</footer>
</footer>