mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-25 14:30:39 +00:00
fix: use .GetPage to link contact page if contact.md exists
This commit is contained in:
parent
2a1586e753
commit
3c0dbcc668
@ -7,10 +7,10 @@
|
|||||||
<a href='{{ .Permalink | relURL }}' class="gblog-footer__link">Feed</a>
|
<a href='{{ .Permalink | relURL }}' class="gblog-footer__link">Feed</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if (fileExists "contact.md") }}
|
{{ with .GetPage "contact.md" }}
|
||||||
<span class="gblog-footer__item">
|
<span class="gblog-footer__item">
|
||||||
<svg class="icon email"><use xlink:href="#email"></use></svg>
|
<svg class="icon email"><use xlink:href="#email"></use></svg>
|
||||||
<a href='{{ "contact" | relURL }}' class="gblog-footer__link">Contact</a>
|
<a href='{{ .Permalink | relURL }}' class="gblog-footer__link">Contact</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.GeekblogLegalNotice }}
|
{{ with .Site.Params.GeekblogLegalNotice }}
|
||||||
|
Loading…
Reference in New Issue
Block a user