diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/rss.xml | 7 | ||||
| -rw-r--r-- | layouts/partials/head.html | 5 | ||||
| -rw-r--r-- | layouts/shortcodes/recent_blog.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/recent_games.html | 8 |
4 files changed, 17 insertions, 5 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index c6b7f31..d5104e5 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,6 +11,7 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} +{{- printf "<?xml-stylesheet href=\"/rss.xsl\" type=\"text/xsl\" media=\"screen\" ?>" | safeHTML }} <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> @@ -27,14 +28,14 @@ {{- end -}} {{ range $pages }} {{if compare.Eq .Section "blog"}} - <item> + <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> - <description>{{ .Summary | html }}</description> - </item> + <description>{{ .Summary | htmlUnescape | plainify }}</description> + </item> {{ end }} {{ end }} </channel> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2762e62..5fae843 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,7 +26,6 @@ {{ end -}} <!-- custom feeds --> - <link rel="alternative" type="application/rss+xml" href="https://huginn.marks.kitchen/users/1/web_requests/23/reblogs.xml" title="Mark's Reblogs" /> <!-- schema --> {{ template "_internal/schema.html" . }} @@ -43,5 +42,9 @@ {{ template "_internal/opengraph.html" . }} + <link rel="preconnect" href="https://fonts.googleapis.com"> + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> + <link href="https://fonts.googleapis.com/css2?family=Caudex:ital,wght@0,400;0,700;1,400;1,700&family=IM+Fell+English:ital@0;1&family=Niconne&display=swap" rel="stylesheet"> + {{ block "head" . }}{{ end }} </head> diff --git a/layouts/shortcodes/recent_blog.html b/layouts/shortcodes/recent_blog.html index 8a4ec89..c1dfed9 100644 --- a/layouts/shortcodes/recent_blog.html +++ b/layouts/shortcodes/recent_blog.html @@ -3,7 +3,7 @@ <li class="post"> {{.BundleType}} <span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format "January 2, 2006" }}</span> - <p>{{ .Summary }}</p> + {{ .Summary }} </li> {{ end }} </ul>
\ No newline at end of file diff --git a/layouts/shortcodes/recent_games.html b/layouts/shortcodes/recent_games.html new file mode 100644 index 0000000..54d5d4f --- /dev/null +++ b/layouts/shortcodes/recent_games.html @@ -0,0 +1,8 @@ +<ul> +{{ range first 3 (where .Site.RegularPages "Section" "games") }} + <li class="post"> + {{.BundleType}} + <span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format "January 2, 2006" }}</span> + </li> +{{ end }} +</ul>
\ No newline at end of file |
