mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-22 06:52:18 +00:00
update rss, use full text instead of summary
This commit is contained in:
parent
dcc98e9dcd
commit
d25a0d9bce
3 changed files with 9 additions and 22 deletions
|
@ -5,7 +5,6 @@ mainSections = ["posts"]
|
||||||
fallBackOgImage = "images/broken-computer.png"
|
fallBackOgImage = "images/broken-computer.png"
|
||||||
numberOfFeaturedPosts = 5
|
numberOfFeaturedPosts = 5
|
||||||
numberOfRelatedPosts = 5
|
numberOfRelatedPosts = 5
|
||||||
author = "jbowdre"
|
|
||||||
|
|
||||||
indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-."
|
indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-."
|
||||||
|
|
||||||
|
@ -20,6 +19,11 @@ analytics = true
|
||||||
[theme]
|
[theme]
|
||||||
palette = "runtimeterror"
|
palette = "runtimeterror"
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "John Bowdre"
|
||||||
|
email = "jbowdre@omg.lol"
|
||||||
|
username = "jbowdre"
|
||||||
|
|
||||||
# Sidebar: about/bio
|
# Sidebar: about/bio
|
||||||
[about]
|
[about]
|
||||||
title = "runtimeterror"
|
title = "runtimeterror"
|
||||||
|
|
|
@ -17,10 +17,7 @@
|
||||||
<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}}{{ if not .Date.IsZero }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
|
||||||
<webMaster>{{.}}{{ with $.Site.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 }}
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{- with .OutputFormats.Get "RSS" -}}
|
{{- with .OutputFormats.Get "RSS" -}}
|
||||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||||
|
@ -30,24 +27,10 @@
|
||||||
<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.name }}<author>{{.}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>
|
<description>
|
||||||
{{ if ne site.Params.rss_summary false }}
|
{{ .Content | html }}
|
||||||
{{ 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 "<p><a href=\"%s\">%s</a></p>" .RelPermalink $trans | html }}
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
{{ .Content | html }}
|
|
||||||
{{ end }}
|
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<h1 class="about__title">{{ .title }} <a target="_blank" href="/feed.xml" aria-label="RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>
|
<h1 class="about__title">{{ .title }} <a target="_blank" href="/feed.xml" aria-label="RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>
|
||||||
{{ partial "tagline.html" . }}
|
{{ partial "tagline.html" . }}
|
||||||
<br>
|
<br>
|
||||||
<a href="about"><i class="fa-regular fa-user"></i></a> <a href="/about">{{ site.Params.Author }}</a>
|
<a href="about"><i class="fa-regular fa-user"></i></a> <a href="/about">{{ site.Params.Author.username }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<ul class="aside__social-links">
|
<ul class="aside__social-links">
|
||||||
|
|
Loading…
Reference in a new issue