mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-11-29 07:26:40 +01:00
Add dynamic copyright year in footer (#121)
This commit is contained in:
committed by
Michael Noronha
parent
df2dcd00c6
commit
915f2000ff
@@ -16,9 +16,9 @@
|
||||
|
||||
{{ if .Site.Params.copyright }}
|
||||
{{ if .Site.Params.copyrightUrl }}
|
||||
<a href="{{ .Site.Params.copyrightUrl }}">{{ .Site.Params.copyright }}</a>
|
||||
<a href="{{ .Site.Params.copyrightUrl }}">{{ replace .Site.Params.copyright "{year}" now.Year }}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .Site.BaseURL }}license">{{ .Site.Params.copyright }}</a>
|
||||
<a href="{{ .Site.BaseURL }}license">{{ replace .Site.Params.copyright "{year}" now.Year }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user