configure rss

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

View file

@ -11,7 +11,10 @@ enableInlineShortcodes = true
# sectionPagesMenu = "main" # sectionPagesMenu = "main"
[outputs] [outputs]
home = ["HTML", "RSS", "JSON"] home = ['html', 'rss', 'json']
section = ['html']
taxonomy = ['html',]
term = ['html', 'rss']
[permalinks] [permalinks]
posts = ":filename" posts = ":filename"
@ -41,6 +44,9 @@ enableInlineShortcodes = true
[services.instagram] [services.instagram]
disableInlineCSS = true disableInlineCSS = true
[services.rss]
limit = 20
[services.twitter] [services.twitter]
disableInlineCSS = true 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 }} {{ with .Site.Params.about }}
<div class="aside__about"> <div class="aside__about">
{{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }} {{ 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" . }} {{ partial "tagline.html" . }}
<br> <br>
<a href="about"><i class="fa-regular fa-user"></i></a>&nbsp;<a href="/about">{{ site.Params.Author }}</a> <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 }} {{ if .IsHome }}
<h1>{{ site.Params.indexTitle | markdownify }}</h1> <h1>{{ site.Params.indexTitle | markdownify }}</h1>
{{ else }} {{ 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 }} {{ end }}
{{ .Content }} {{ .Content }}
</header> </header>

View file

@ -5,6 +5,10 @@
<meta charset="UTF-8"/> <meta charset="UTF-8"/>
{{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }} {{ 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" . }} {{ partialCached "favicon" . }}
{{ partial "opengraph" . }} {{ partial "opengraph" . }}