add option to include a privacy policy and legal notice page

This commit is contained in:
Robert Kaussow 2020-02-05 01:15:51 +01:00
parent 7cceca5a72
commit e000c1e461
6 changed files with 42 additions and 6 deletions

View file

@ -1,9 +1,18 @@
<footer class="gdoc-footer">
<div class="container flex">
<span>
<div class="container flex flex-wrap">
<span class="gdoc-footer__item">
Build with <a href="https://gohugo.io/" class="gdoc-footer__link">Hugo</a> and
<svg class="icon heart"><use xlink:href="#heart"></use></svg>
</span>
<span>
{{ with .Site.Params.GeekdocLegalNotice }}
<span class="gdoc-footer__item">
<a href="{{ . | relURL }}" class="gdoc-footer__link">Legal Notice</a>
</span>
{{ end }}
{{ with .Site.Params.GeekdocPrivacyPolicy }}
<span class="gdoc-footer__item">
<a href="{{ . | relURL }}" class="gdoc-footer__link">Privacy Policy</a>
</span>
{{ end }}
</div>
</footer>