浏览代码

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 年前
父节点
当前提交
1c57d9724b
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      layouts/partials/blog.html

+ 2
- 2
layouts/partials/blog.html 查看文件

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

正在加载...
取消
保存