chore: update blog to work with latest versions of Hugo
This commit is contained in:
parent
20662dc99b
commit
6df64315d5
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
/content/*.md
|
/content/*.md
|
||||||
/.hugo_build.lock
|
/.hugo_build.lock
|
||||||
/build/
|
/build/
|
||||||
|
/blog/
|
||||||
|
12
config.toml
12
config.toml
@ -3,21 +3,23 @@ languageCode = "en-us"
|
|||||||
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
|
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
|
||||||
title = "Phundrak’s rambling"
|
title = "Phundrak’s rambling"
|
||||||
theme = "m10c"
|
theme = "m10c"
|
||||||
paginate = 10
|
|
||||||
enableInlineShortcodes = true
|
enableInlineShortcodes = true
|
||||||
staticDir = ["static"]
|
staticDir = ["static"]
|
||||||
|
|
||||||
summarylength = 10
|
summarylength = 10
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
|
||||||
[author]
|
[pagination]
|
||||||
name = "Lucien Cartier-Tilet"
|
pagerSize = 10
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
author = "Lucien Cartier-Tilet"
|
|
||||||
description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging"
|
description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging"
|
||||||
avatar = "leon.png"
|
avatar = "leon.png"
|
||||||
|
|
||||||
|
[params.author]
|
||||||
|
name = "Lucien Cartier-Tilet"
|
||||||
|
email = "lucien@phundrak.com"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "github"
|
name = "github"
|
||||||
url = "https://github.com/phundrak"
|
url = "https://github.com/phundrak"
|
||||||
@ -36,7 +38,7 @@ enableEmoji = true
|
|||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "twitter"
|
name = "twitter"
|
||||||
url = "https://twitter.com/phundrak"
|
url = "https://mastodon.phundrak.com/phundrak"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "youtube"
|
name = "youtube"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
|
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
|
||||||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
|
||||||
<meta name="fediverse:creator" content="@phundrak@mastodon.phundrak.com" />
|
<meta name="fediverse:creator" content="@phundrak@mastodon.phundrak.com" />
|
||||||
{{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}}
|
{{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | css.Sass | resources.Minify | resources.Fingerprint -}}
|
||||||
<link rel="stylesheet" href="{{ $style.Permalink }}" />
|
<link rel="stylesheet" href="{{ $style.Permalink }}" />
|
||||||
|
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{- with .OutputFormats.Get "RSS" -}}
|
{{- with .OutputFormats.Get "RSS" -}}
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | html }}</description>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user