add option to include a privacy policy and legal notice page
This commit is contained in:
parent
7cceca5a72
commit
e000c1e461
6 changed files with 42 additions and 6 deletions
|
@ -43,7 +43,7 @@
|
|||
{{ end }}
|
||||
|
||||
|
||||
<div class="gdoc-page__footer flex justify-between">
|
||||
<div class="gdoc-page__footer flex flex-wrap justify-between">
|
||||
{{ $showPrevNext := (and (not .Site.Params.GeekdocNextPrev) .Site.Params.GeekdocMenuBundle) }}
|
||||
{{ if $showPrevNext }}
|
||||
<span>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<div class="gdoc-page__header flex justify-between{{ if not $geekdocRepo }} hidden-mobile{{ end }}" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||
<div class="gdoc-page__header flex flex-wrap justify-between{{ if not $geekdocRepo }} hidden-mobile{{ end }}" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||
{{$showBreadcrumb := (and (not .Page.Params.geekdocBreadcrumb) (not .Site.Params.geekdocBreadcrumb))}}
|
||||
<span>
|
||||
{{if $showBreadcrumb}}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue