mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 20:50:40 +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>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ if (fileExists "contact.md") }}
|
||||
{{ with .GetPage "contact.md" }}
|
||||
<span class="gblog-footer__item">
|
||||
<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>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.GeekblogLegalNotice }}
|
||||
|
Loading…
Reference in New Issue
Block a user