configure rss

This commit is contained in:
John Bowdre 2023-12-22 16:04:21 -06:00
parent be922b5f05
commit fe1a3d90cd
5 changed files with 13 additions and 8 deletions

View file

@ -11,7 +11,10 @@ enableInlineShortcodes = true
# sectionPagesMenu = "main"
[outputs]
home = ["HTML", "RSS", "JSON"]
home = ['html', 'rss', 'json']
section = ['html']
taxonomy = ['html',]
term = ['html', 'rss']
[permalinks]
posts = ":filename"
@ -41,6 +44,9 @@ enableInlineShortcodes = true
[services.instagram]
disableInlineCSS = true
[services.rss]
limit = 20
[services.twitter]
disableInlineCSS = true

View file

@ -1,5 +0,0 @@
---
date: 2019-05-28
type: section
layout: "archives"
---

View file

@ -1,7 +1,7 @@
{{ with .Site.Params.about }}
<div class="aside__about">
{{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }}
<h1 class="about__title">{{ .title }}</h1>
<h1 class="about__title">{{ .title }}&nbsp;<a target="_blank" href="/index.xml" aria-label="RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>
{{ partial "tagline.html" . }}
<br>
<a href="about"><i class="fa-regular fa-user"></i></a>&nbsp;<a href="/about">{{ site.Params.Author }}</a>

View file

@ -6,7 +6,7 @@
{{ if .IsHome }}
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
{{ else }}
<h1>{{ .Title | markdownify }}</h1>
<h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }}&nbsp;<a target="_blank" href="index.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>{{ end }}
{{ end }}
{{ .Content }}
</header>

View file

@ -5,6 +5,10 @@
<meta charset="UTF-8"/>
{{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
{{ partialCached "favicon" . }}
{{ partial "opengraph" . }}