Ver código fonte

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 anos atrás
pai
commit
1c57d9724b
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      layouts/partials/blog.html

+ 2
- 2
layouts/partials/blog.html Ver arquivo

@@ -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 }}

Carregando…
Cancelar
Salvar