Add support for _index.md. Close #31
This commit is contained in:
parent
1074bfcae3
commit
2fc2766a24
@ -1,4 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="index-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<h1>{{ i18n .Title }}</h1>
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
|
@ -1,4 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="index-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<h1>{{ i18n .Title }}</h1>
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
{{ define "main" }}
|
||||
<div class="homepage-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{ range (.Paginate $pages).Pages }}
|
||||
<article class="post-list">
|
||||
|
Loading…
Reference in New Issue
Block a user