Skip to content

Commit

Permalink
♻️ Remove microblog from included RSSSection
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonhull committed Mar 11, 2020
1 parent 07ef988 commit 29107e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ params:
api_key: a7ec2763a5d966a5b9f8d70b254bfb68 api_key: a7ec2763a5d966a5b9f8d70b254bfb68
index_name: sheldonhull index_name: sheldonhull
show_logo: true show_logo: true
RSSSection: ["blog","microblog"] RSSSection: ["blog"]
rssmicroblogtitles: true rssmicroblogtitles: true
RSSEnabled: true RSSEnabled: true
rssLimit: 15 # Maximum number of items in the RSS feed. rssLimit: 15 # Maximum number of items in the RSS feed.
Expand Down
3 changes: 2 additions & 1 deletion layouts/_default/rss.xml
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}} {{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}}
{{- $pages := where $pages "Section" "!=" "microblog" -}}




{{- $limit := .Site.Params.rssLimit -}} {{- $limit := .Site.Params.rssLimit -}}
Expand Down Expand Up @@ -27,7 +28,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <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}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>TEST {{ .Content | html }}</description> <description>{{ .Content | html }}</description>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>
Expand Down
5 changes: 4 additions & 1 deletion layouts/blog/rss.xml
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,7 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}} {{- $pages := where site.RegularPages "Type" "in" site.Params.RSSSection -}}
{{- $pages := where $pages "Section" "!=" "microblog" -}}






{{- $limit := .Site.Params.rssLimit -}} {{- $limit := .Site.Params.rssLimit -}}
Expand Down Expand Up @@ -27,7 +30,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <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}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>TEST {{ .Content | html }}</description> <description>{{ .Content | html }}</description>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/gist.html
Original file line number Original file line Diff line number Diff line change
@@ -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> <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.