Browse Source

Correct a problem when using less than 3 blog article

In this case, the author is (badly) displayed. This patch hard limits blog posts to blog section.
tags/v1.0.0
divinerites 4 years ago
parent
commit
1c57d9724b
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      layouts/partials/blog.html

+ 2
- 2
layouts/partials/blog.html View File

@@ -13,7 +13,7 @@
</div>
{{"<!-- /section title -->" | safeHTML}}

{{ range first 3 .Site.RegularPages }}
{{ range first 3 (where .Site.RegularPages "Section" "==" "blog")}}
{{ .Render "article"}}
{{ end }}

@@ -25,4 +25,4 @@
</div>
</section>
{{"<!-- /blog -->" | safeHTML}}
{{ end }}
{{ end }}

Loading…
Cancel
Save