Alexander Avery
9 months ago
2 changed files with 35 additions and 17 deletions
@ -1,13 +1,22 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
|
|
||||
|
{{ $pages := .Site.RegularPages }} |
||||
|
|
||||
{{if not .IsHome }} |
{{if not .IsHome }} |
||||
|
|
||||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
||||
|
|
||||
|
{{ $pages = .Pages }} |
||||
|
|
||||
{{ end }} |
{{ end }} |
||||
{{ .Content }} |
|
||||
|
<section>{{ .Content }}</section> |
||||
|
|
||||
<section class="article-list"> |
<section class="article-list"> |
||||
{{ $pages := .Pages }} |
{{ range $pages }} |
||||
{{ range (where $pages "Section" "ne" "") }} |
|
||||
{{ partial "article-card.html" . }} |
{{ partial "article-card.html" . }} |
||||
{{ end }} |
{{ end }} |
||||
</section> |
</section> |
||||
|
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
|
Loading…
Reference in new issue