File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ pluralizeListTitles: false
9
9
metadataFormat : yaml
10
10
params :
11
11
stylesheets : [ "bootstrap.css", "font-awesome.css", "custom.css" ]
12
+ recentTypes : [ "news", "wiki" ]
12
13
author :
13
14
name : The Bufferbloat community
14
15
Original file line number Diff line number Diff line change 9
9
< h4 > Recent News & Articles</ h4 >
10
10
</ div >
11
11
< div class ="panel-body ">
12
- {{ range first 5 .Site.Pages.ByDate.Reverse }}
12
+ {{ range first 5 (where .Site.Pages.ByDate.Reverse "Type" "in" .Site.Params.recentTypes) }}
13
13
{{ .Render "title" }}
14
14
{{ end }}
15
15
</ div >
Original file line number Diff line number Diff line change 2
2
<channel >
3
3
<title >{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}</title >
4
4
<link >{{ .Permalink }}</link >
5
- <description >Recent news {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description >
5
+ <description >Recent news and articles {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description >
6
6
<generator >Hugo -- gohugo.io</generator >{{ with .Site.LanguageCode }}
7
7
<language >{{.}}</language >{{end}}{{ with .Site.Author.email }}
8
8
<managingEditor >{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor >{{end}}{{ with .Site.Author.email }}
9
9
<webMaster >{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster >{{end}}{{ with .Site.Copyright }}
10
10
<copyright >{{.}}</copyright >{{end}}{{ if not .Date.IsZero }}
11
11
<lastBuildDate >{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate >{{ end }}
12
12
<atom : link href =" {{.URL}}" rel =" self" type =" application/rss+xml" />
13
- {{ range first 15 (where .Site.Pages.ByDate.Reverse "Type" "=" "news" ) }}
13
+ {{ range first 15 (where .Site.Pages.ByDate.Reverse "Type" "in" .Site.Params.recentTypes ) }}
14
14
<item >
15
15
<title >{{ .Title }}</title >
16
16
<link >{{ .Permalink }}</link >
You can’t perform that action at this time.
0 commit comments