diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 10:41:48 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 11:22:13 +0200 |
| commit | 35c314107fd97ba4270da81065008cdfc36cb847 (patch) | |
| tree | f80f0247be08b2908013caa06f8e1695923bbf96 | |
| parent | 225e8b4ff4187c60e154836b2269c4b6da82021a (diff) | |
| download | gohugo-theme-ed-35c314107fd97ba4270da81065008cdfc36cb847.tar.gz | |
Correct code style
| -rw-r--r-- | layouts/partials/site-last-mod.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/site-last-mod.html b/layouts/partials/site-last-mod.html index ecd3900..1b422b2 100644 --- a/layouts/partials/site-last-mod.html +++ b/layouts/partials/site-last-mod.html @@ -9,13 +9,13 @@ {{- $siteLastMod := "" -}} {{- if ge site.Hugo.Version "0.123.0" -}} - {{- if not site.Lastmod.IsZero -}} - {{- $siteLastMod = site.Lastmod -}} - {{- end -}} + {{- if not site.Lastmod.IsZero -}} + {{- $siteLastMod = site.Lastmod -}} + {{- end -}} {{- else -}} - {{- if not site.LastChange.IsZero -}} - {{- $siteLastMod = site.LastChange -}} - {{- end -}} + {{- if not site.LastChange.IsZero -}} + {{- $siteLastMod = site.LastChange -}} + {{- end -}} {{- end -}} {{- return $siteLastMod -}} |
