diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index a58ec42..6529864 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,7 +1,7 @@ baseURL = "https://runtimeterror.dev" theme = "risotto" title = "runtimeterror" -copyright = "© 2018-2023 [runtimeterror](https://runtimeterror.dev)" +copyright = "© 2023 runtimeterror" paginate = 10 languageCode = "en" DefaultContentLanguage = "en" diff --git a/config/_default/params.toml b/config/_default/params.toml index 4060a19..8f0b2b3 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -5,10 +5,14 @@ mainSections = ["posts"] fallBackOgImage = "images/broken-computer.png" numberOfFeaturedPosts = 5 numberOfRelatedPosts = 5 -author = "jbowdre" indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-." +[author] + name = "John Bowdre" + email = "jbowdre@omg.lol" + username = "jbowdre" + # Comments comments = true utterancesRepo = "jbowdre/site-comments" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 02cb455..6a7f770 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,44 +11,36 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} + + {{ .Site.Params.fallBackOgImage | absURL }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ range $pages }} - {{ .Title }} + {{ .Title | plainify }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Params.Author.name }}{{.}}{{ end }} + {{ with .Params.series }}{{ . | lower }}{{ end }} + {{ range (.GetTerms "tags") }} + {{ .LinkTitle }}{{ end }} {{ .Permalink }} - - {{ if ne site.Params.rss_summary false }} - {{ if .Params.summary }} - {{ .Params.summary | html }} - {{ else if .Params.abstract }} - {{ .Params.abstract | html }} - {{ else if .Summary }} - {{ .Summary | html }} - {{ end }} - {{ if site.Params.rss_summary_read_more_link }} - {{ $trans := i18n "read_more" -}} - {{ printf "

%s

" .RelPermalink $trans | html }} - {{ end }} - {{ else }} - {{ .Content | html }} - {{ end }} -
+ {{ .Summary | plainify }}
{{ end }}
diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 4260bb1..29869da 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -4,7 +4,7 @@

{{ .title }}  

{{ partial "tagline.html" . }}
- {{ site.Params.Author }} + {{ site.Params.Author.username }} {{ end }}