diff options
author | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-07 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-07 00:00:00 +0000 |
commit | 3acfe976299e0e4ba3b0105946e1729ed1fd4a7891c3fef668cbbd6ab38e5919 (patch) | |
tree | 978363087a5dd48089539d337c38adbda09e74d996caaf5b8bacfb8fe983f53c | |
parent | 44f878e5ff49d359a95cf38434259707f8078151896463a43e7a7f17dd390e0e (diff) | |
download | hugo-theme-journal-3acfe976299e0e4ba3b0105946e1729ed1fd4a7891c3fef668cbbd6ab38e5919.tar.gz hugo-theme-journal-3acfe976299e0e4ba3b0105946e1729ed1fd4a7891c3fef668cbbd6ab38e5919.zip |
Remove timestamp obfuscation privacy feature
Timestamp obfuscation is a niche privacy feature which contradicts how
users expect Hugo to work. If the user desires such a feature, they can
override the theme with their own custom timestamp-obfuscating
archetypes.
-rw-r--r-- | archetypes/entry.md | 2 | ||||
-rw-r--r-- | layouts/index.atom.xml | 2 | ||||
-rw-r--r-- | layouts/index.gemini_atom.xml | 2 | ||||
-rw-r--r-- | layouts/partials/footer.gmi | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/taxonomy/taxonomy.atom.xml | 2 | ||||
-rw-r--r-- | layouts/taxonomy/taxonomy.gemini_atom.xml | 2 | ||||
-rw-r--r-- | layouts/term/term.atom.xml | 2 | ||||
-rw-r--r-- | layouts/term/term.gemini_atom.xml | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/archetypes/entry.md b/archetypes/entry.md index 32d6347..e4b95fc 100644 --- a/archetypes/entry.md +++ b/archetypes/entry.md @@ -1,6 +1,6 @@ --- title: "{{ replace .Name "-" " " | title }}" -date: {{ now.UTC.Format "2006-01-02T00:00:00Z" }} +date: {{ now.Format "2006-01-02T15:04:05-0700" }} draft: true --- diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 62df481..0d988ee 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} <entry> <id>{{ .Permalink }}</id> diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index 09e2bc1..de1478b 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.gemini_atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} <entry> <id>{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }}</id> diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi index 957c9d0..338e88e 100644 --- a/layouts/partials/footer.gmi +++ b/layouts/partials/footer.gmi @@ -1 +1 @@ -{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") | safeHTML }}
\ No newline at end of file +{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 00194b2..5f8ffc6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,3 @@ <footer class="footer"> - <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</p> + <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") }}</p> </footer>
\ No newline at end of file diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml index 4ef94d6..cbcbae8 100644 --- a/layouts/taxonomy/taxonomy.atom.xml +++ b/layouts/taxonomy/taxonomy.atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} <entry> <id>{{ .Permalink }}</id> diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml index 60bc51b..dc08a54 100644 --- a/layouts/taxonomy/taxonomy.gemini_atom.xml +++ b/layouts/taxonomy/taxonomy.gemini_atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} <entry> <id>{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }}</id> diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml index 4ef94d6..cbcbae8 100644 --- a/layouts/term/term.atom.xml +++ b/layouts/term/term.atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} <entry> <id>{{ .Permalink }}</id> diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml index 7afe36e..27126d7 100644 --- a/layouts/term/term.gemini_atom.xml +++ b/layouts/term/term.gemini_atom.xml @@ -44,7 +44,7 @@ <email>{{ . }}</email>{{ end }} </author>{{ end }} <generator>Hugo -- gohugo.io</generator> - <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights> + <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights> <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} <entry> <id>{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }}</id> |