Skip to content

Commit 16ef437

Browse files
Exclude dontFeed=true from latest
1 parent 8f8f387 commit 16ef437

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</div>
3636
</div>
3737
<div id="blogs">
38-
{{ range first 1 (where .Site.RegularPages "Section" "") }}
38+
{{ range first 1 (where (where .Site.RegularPages "Section" "") ".Params.dontFeed" "ne" true) }}
3939
<div class="post-preview">
4040
<a href="{{ .Permalink }}">
4141
<h1 class="post-title">{{ .Title }}</h1>

layouts/partials/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div id="mysqlMenu" class="submenu">
3737
<div class="subtitle">Latest</div>
3838
{{ $m := slice "mysql" }}
39-
{{ range first 5 (where .Site.Pages ".Params.tags" "intersect" $m) }}
39+
{{ range first 5 (where (where .Site.Pages ".Params.tags" "intersect" $m) ".Params.dontFeed" "ne" true) }}
4040
<time>{{ .Date.Format "2006-01-02" }}</time>&nbsp;<a href="{{ .Permalink }}">{{ .Title }}</a><br>
4141
{{ end }}
4242
<div class="subtitle">Most Popular</div>

0 commit comments

Comments
 (0)