fixed rss item generation
This commit is contained in:
parent
da242991b7
commit
c84741b19e
@ -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>
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user