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