Use UTC everywhere
This commit is contained in:
parent
60141b41d2
commit
d365e1ca4c
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = '{{ replace .Name '-' ' ' | title }}'
|
||||
date = {{ .Date.Format "2006-01-02" }}
|
||||
date = {{ .Date.UTC.Format "2006-01-02" }}
|
||||
draft = true
|
||||
outputs = ['html', 'gemtext']
|
||||
slug = {{ .Name }}
|
||||
|
|
|
@ -6,7 +6,7 @@ tags = []
|
|||
highlight = false
|
||||
draft = true
|
||||
|
||||
date = {{ .Date.Format "2006-01-02T15:04:05Z" }}
|
||||
date = {{ .Date.UTC.Format "2006-01-02T15:04:05Z" }}
|
||||
draft = true
|
||||
outputs = ['html', 'gemtext']
|
||||
# Filename after the date
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
baseURL = "https://home.hedy.dev/"
|
||||
languageCode = "en-us"
|
||||
title = "~hedy's home"
|
||||
languageCode = "en-us"
|
||||
timeZone = "UTC"
|
||||
|
||||
# Yes. Because I like the /folder -> /folder/ redirects
|
||||
uglyurls = false
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
<lastBuildDate>{{ .Date.UTC.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{- with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .RelPermalink .MediaType | safeHTML }}
|
||||
{{- end }}
|
||||
|
@ -31,7 +31,7 @@
|
|||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .RelPermalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<pubDate>{{ .Date.UTC.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .RelPermalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>hedy's blog</title>
|
||||
<link href="{{ .RelPermalink }}"/>
|
||||
<updated>{{ time.Now | time.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
|
||||
<updated>{{ time.Now.UTC | time.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
|
||||
<id>{{ .RelPermalink }}</id>
|
||||
<author>
|
||||
<name>{{ $.Site.Author.name }}</name>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<title>{{ .Title }}</title>
|
||||
{{ printf `<link rel="alternate" href="%s" />` .RelPermalink | safeHTML }}
|
||||
<id>{{ .RelPermalink }}</id>
|
||||
<updated>{{ .Date.Format "2006-01-02" }}T12:00:00Z</updated>
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05Z" }}</updated>
|
||||
<author>
|
||||
<name>{{ $.Site.Author.name }}</name>
|
||||
<email>{{ $.Site.Author.email }}</email>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>hedy's gemlog</title>
|
||||
<link href="{{ .Site.Params.geminiRoot }}"/>
|
||||
<updated>{{ time.Now | time.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
|
||||
<updated>{{ time.Now.UTC | time.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
|
||||
<id>{{ .Site.Params.geminiRoot }}</id>
|
||||
<author>
|
||||
<name>{{ $.Site.Author.name }}</name>
|
||||
|
@ -24,7 +24,7 @@
|
|||
<title>{{ $p.Title }}</title>
|
||||
{{ printf `<link rel="alternate" href="%s" />` $perm | safeHTML }}
|
||||
<id>{{ $perm }}</id>
|
||||
<updated>{{ $p.Date.Format "2006-01-02" }}T12:00:00Z</updated>
|
||||
<updated>{{ $p.Date.Format "2006-01-02T15:04:05Z" }}</updated>
|
||||
<author>
|
||||
<name>{{ $.Site.Author.name }}</name>
|
||||
<email>{{ $.Site.Author.email }}</email>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{{ $lastmod := .Lastmod -}}
|
||||
{{ if lt .Date $lastmod -}}
|
||||
Last updated {{ .Lastmod.Format "2006-01-02" }}{{ end }}
|
||||
Last updated {{ .Lastmod.UTC.Format "2006-01-02" }}{{ end }}
|
||||
--
|
||||
|
||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta name="author" content="{{ .Site.Author.name }}">
|
||||
<meta property="article:author" content="{{ .Site.Author.name }}">
|
||||
{{ if gt .Date 0 -}}
|
||||
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
<meta property="article:published_time" content="{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}">
|
||||
{{ end -}}
|
||||
{{ if lt .Date .Lastmod -}}
|
||||
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
<meta property="article:modified_time" content="{{ .Lastmod.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}">
|
||||
{{- end -}}
|
||||
<!--Have concerns? Drop me an email with your constructive criticism.-->
|
||||
<script data-goatcounter="https://ultimategopher.goatcounter.com/count"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ if lt .Page.Date .Page.Lastmod -}}
|
||||
{{ .Prefix | safeHTML }}Last updated on
|
||||
<time itemprop="dateModified" class="dt-updated">{{ .Page.Lastmod.Format "Jan 2, 2006" }}</time>
|
||||
<time itemprop="dateModified" class="dt-updated">{{ .Page.Lastmod.UTC.Format "Jan 2, 2006" }}</time>
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ define "content" -}}
|
||||
# {{ $.Title }}
|
||||
|
||||
{{ .Date.Format "Jan 02, 2006" }} · {{ .WordCount }} words
|
||||
{{ .Date.UTC.Format "Jan 02, 2006" }} · {{ .WordCount }} words
|
||||
{{ partial "lastmod.gmi" (dict "Page" . "Postfix" ".") }}
|
||||
--
|
||||
{{ partial "processed-content.gmi" . }}
|
||||
|
|
Loading…
Reference in New Issue