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
|
||||
/.hugo_build.lock
|
||||
/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."
|
||||
title = "Phundrak’s rambling"
|
||||
theme = "m10c"
|
||||
paginate = 10
|
||||
enableInlineShortcodes = true
|
||||
staticDir = ["static"]
|
||||
|
||||
summarylength = 10
|
||||
enableEmoji = true
|
||||
|
||||
[author]
|
||||
name = "Lucien Cartier-Tilet"
|
||||
[pagination]
|
||||
pagerSize = 10
|
||||
|
||||
[params]
|
||||
author = "Lucien Cartier-Tilet"
|
||||
description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging"
|
||||
avatar = "leon.png"
|
||||
|
||||
[params.author]
|
||||
name = "Lucien Cartier-Tilet"
|
||||
email = "lucien@phundrak.com"
|
||||
|
||||
[[params.social]]
|
||||
name = "github"
|
||||
url = "https://github.com/phundrak"
|
||||
@ -36,7 +38,7 @@ enableEmoji = true
|
||||
|
||||
[[params.social]]
|
||||
name = "twitter"
|
||||
url = "https://twitter.com/phundrak"
|
||||
url = "https://mastodon.phundrak.com/phundrak"
|
||||
|
||||
[[params.social]]
|
||||
name = "youtube"
|
||||
|
@ -8,7 +8,7 @@
|
||||
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
|
||||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
|
||||
<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 }}" />
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
@ -17,9 +17,9 @@
|
||||
<link>{{ .Permalink }}</link>
|
||||
<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 }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Params.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 }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
@ -30,7 +30,7 @@
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<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>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user