fixed rss item generation

This commit is contained in:
Greg Gauthier 2023-01-25 15:09:05 +00:00
parent da242991b7
commit c84741b19e
2 changed files with 5 additions and 7 deletions

View File

@ -1,12 +1,7 @@
<head>
<!-- RSS -->
{{ if .OutputFormats.Get "RSS" }}
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"
href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' />
{{ end }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="alternate" type="application/rss+xml" title="Atari Code" href='{{ .RelPermalink }}/index.xml' />
{{ $css := "css/index.css" | relURL }}
<link rel="stylesheet" href="{{ $css }}">
<title class="title-text">{{ .Title }}</title>

View File

@ -34,6 +34,8 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
{{ if or (eq .Title "Links") (eq .Title "Videos") }}<!-- do nothing -->
{{else}}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@ -52,6 +54,7 @@
]]>
</content:encoded>
</item>
{{ end }}
{{ end }} <!-- if contact or about -->
{{ end }} <!-- RANGE -->
</channel>
</rss>