aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.gmi2
-rw-r--r--layouts/index.atom.xml6
-rw-r--r--layouts/index.gemini_atom.xml6
-rw-r--r--layouts/partials/footer.gmi2
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html3
-rw-r--r--layouts/taxonomy/taxonomy.atom.xml6
-rw-r--r--layouts/taxonomy/taxonomy.gemini_atom.xml6
-rw-r--r--layouts/term/term.atom.xml6
-rw-r--r--layouts/term/term.gemini_atom.xml6
10 files changed, 24 insertions, 21 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 8dc150b..94b7c62 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -90,7 +90,7 @@
{{ $ref_title := index . 3 -}}
{{/* render referenced links */}}
-{{ print "=> " $ref_link (emojify " :link: ") $ref_index ": " (cond (ne (len $ref_title) 0) $ref_title $ref_text) | safeHTML -}}
+{{ print "=> " $ref_link (emojify " :link: [") $ref_index "]: " (cond (ne (len $ref_title) 0) $ref_title $ref_text) | safeHTML -}}
{{ end -}}
{{ end -}}
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index f7abe7e..5c8b764 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }}
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index dc1b563..2c5f682 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }}
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>
diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi
index 338e88e..957c9d0 100644
--- a/layouts/partials/footer.gmi
+++ b/layouts/partials/footer.gmi
@@ -1 +1 @@
-{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }} \ No newline at end of file
+{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") | safeHTML }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5f8ffc6..00194b2 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.Format "2006") }}</p>
+ <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</p>
</footer> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 34a6ead..846de75 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,6 +14,9 @@
{{- end -}}
{{ else }}
<link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/style.css").RelPermalink }}">
+ {{- end -}}
+ {{ if (not (fileExists "static/favicon.ico")) }}
+ <link rel="icon" href="data:,">
{{- end }}
<title>{{ .Title }}</title>
</head> \ No newline at end of file
diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml
index c0c9f6e..e499961 100644
--- a/layouts/taxonomy/taxonomy.atom.xml
+++ b/layouts/taxonomy/taxonomy.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml
index 85ff034..84af3b3 100644
--- a/layouts/taxonomy/taxonomy.gemini_atom.xml
+++ b/layouts/taxonomy/taxonomy.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>
diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml
index c0c9f6e..e499961 100644
--- a/layouts/term/term.atom.xml
+++ b/layouts/term/term.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml
index 85ff034..84af3b3 100644
--- a/layouts/term/term.gemini_atom.xml
+++ b/layouts/term/term.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -10,12 +10,12 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>