mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Separate footer information into new partial
This commit is contained in:
parent
ae4bf201d1
commit
24adaa6eb6
@ -1,15 +1,4 @@
|
||||
<footer class="footer">
|
||||
{{- if .Site.Copyright }}
|
||||
<span>{{ .Site.Copyright | markdownify }}</span>
|
||||
{{- else }}
|
||||
<span>© {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></span>
|
||||
{{- end }}
|
||||
<span>
|
||||
Powered by
|
||||
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
|
||||
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
|
||||
</span>
|
||||
</footer>
|
||||
{{- partial "footer_info.html" . }}
|
||||
|
||||
{{- if (not .Site.Params.disableScrollToTop) }}
|
||||
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)">
|
||||
|
13
layouts/partials/footer_info.html
Normal file
13
layouts/partials/footer_info.html
Normal file
@ -0,0 +1,13 @@
|
||||
<footer class="footer">
|
||||
{{- if .Site.Copyright }}
|
||||
<span id="copyright">{{ default .Site.Copyright | markdownify }}</span>
|
||||
{{- else }}
|
||||
<span id="copyright">© {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ default .Site.Title (.Param "formalName") }}</a></span>
|
||||
{{- end }}
|
||||
<span id="poweredBy">
|
||||
Powered by
|
||||
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
|
||||
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
|
||||
</span>
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user