mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00
Add dynamic copyright year in footer (#121)
This commit is contained in:

committed by
Michael Noronha

parent
df2dcd00c6
commit
915f2000ff
@@ -19,7 +19,7 @@ blog = "blog/:slug/"
|
||||
dateform = "Jan 2, 2006"
|
||||
dateformfull = "Mon Jan 2 2006 15:04:05 MST"
|
||||
description = "Example blog"
|
||||
copyright = "Copyright © 2015 Nishanth Shanmugham"
|
||||
copyright = "Copyright © 2015-{year} Nishanth Shanmugham"
|
||||
# copyrightUrl = "https://creativecommons.org/licenses/by-sa/4.0/"
|
||||
logofile = "img/logo.png"
|
||||
faviconfile = "img/logo.png"
|
||||
|
@@ -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