Skip to content
Permalink
Browse files

♻️ Remove microblog from included RSSSection

  • Loading branch information
sheldonhull committed Mar 11, 2020
1 parent 07ef988 commit 29107e16f76e4fc2bac0458f4ddd1b556fa6bbb5
Showing with 8 additions and 3 deletions.
  1. +1 −1 config.yml
  2. +2 −1 layouts/_default/rss.xml
  3. +4 −1 layouts/blog/rss.xml
  4. +1 −0 layouts/shortcodes/gist.html
@@ -123,7 +123,7 @@ params:
api_key: a7ec2763a5d966a5b9f8d70b254bfb68
index_name: sheldonhull
show_logo: true
RSSSection: ["blog","microblog"]
RSSSection: ["blog"]
rssmicroblogtitles: true
RSSEnabled: true
rssLimit: 15 # Maximum number of items in the RSS feed.
@@ -1,4 +1,5 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}}
{{- $pages := where $pages "Section" "!=" "microblog" -}}


{{- $limit := .Site.Params.rssLimit -}}
@@ -27,7 +28,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>TEST {{ .Content | html }}</description>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
@@ -1,4 +1,7 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}}
{{- $pages := where $pages "Section" "!=" "microblog" -}}




{{- $limit := .Site.Params.rssLimit -}}
@@ -27,7 +30,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>TEST {{ .Content | html }}</description>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
@@ -1 +1,2 @@

<script type="application/javascript" src="https://gist.github.com/{{ .Site.Author.github }}/{{ index .Params 0 }}.js{{if len .Params | eq 2 }}?file={{ index .Params 1 }}{{end}}"></script>

0 comments on commit 29107e1

Please sign in to comment.
You can’t perform that action at this time.