Browse Source

Merge pull request #88 from divinerites/patch-2

Correct a problem when using less than 3 blog article
tags/v1.0.0
Evan 4 years ago
parent
commit
28afad2196
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

</div> </div>
{{"<!-- /section title -->" | safeHTML}} {{"<!-- /section title -->" | safeHTML}}


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


</div> </div>
</section> </section>
{{"<!-- /blog -->" | safeHTML}} {{"<!-- /blog -->" | safeHTML}}
{{ end }}
{{ end }}

Loading…
Cancel
Save