diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | archetypes/entry.md | 2 | ||||
-rw-r--r-- | assets/css/style.css | 4 | ||||
-rw-r--r-- | layouts/_default/single.gmi | 2 | ||||
-rw-r--r-- | layouts/index.atom.xml | 6 | ||||
-rw-r--r-- | layouts/index.gemini_atom.xml | 6 | ||||
-rw-r--r-- | layouts/partials/footer.gmi | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | layouts/taxonomy/taxonomy.atom.xml | 6 | ||||
-rw-r--r-- | layouts/taxonomy/taxonomy.gemini_atom.xml | 6 | ||||
-rw-r--r-- | layouts/term/term.atom.xml | 6 | ||||
-rw-r--r-- | layouts/term/term.gemini_atom.xml | 6 |
14 files changed, 29 insertions, 25 deletions
@@ -10,7 +10,7 @@ A live demo of the theme can be found at the following domain: [https://nicholas * Outputs Gemtext for the [Gemini protocol](https://gemini.circumlunar.space/docs/specification.gmi) * Multilingual support -* 100⁄100 Google Lighthouse score +* 100/100 Google Lighthouse score * Works well on all screen sizes * No bloated Javascript * Absolutely no analytics @@ -1 +0,0 @@ -* shorten logo line-height without causing overflow diff --git a/archetypes/entry.md b/archetypes/entry.md index 46d491a..32d6347 100644 --- a/archetypes/entry.md +++ b/archetypes/entry.md @@ -1,6 +1,6 @@ --- title: "{{ replace .Name "-" " " | title }}" -date: {{ dateFormat "2006-01-02T00:00:00" .Date }} +date: {{ now.UTC.Format "2006-01-02T00:00:00Z" }} draft: true --- diff --git a/assets/css/style.css b/assets/css/style.css index 8854128..91ccede 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -116,7 +116,7 @@ blockquote, ol, p, pre, ul, .highlight { .link { color: #0091ea; - text-decoration: none; + text-underline-offset: 3px; } .link:hover { @@ -139,7 +139,9 @@ blockquote, ol, p, pre, ul, .highlight { .logo {} .logo__text { + line-height: 1.2; margin-bottom: 2em; margin-top: 0; + overflow-y: hidden; padding: 0; } 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> |