fixed homepage list issue

This commit is contained in:
Oliver Atkinson 2023-02-09 14:37:03 -07:00 committed by Oliver Atkinson
parent 4859d9cc5b
commit 314b17986d
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,6 @@
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
description: "Example" description: "Example"
tags: [''] tags: ['blog']
draft: true draft: true
--- ---

View File

@ -13,7 +13,6 @@
<h4 id="tag_{{ .Title }}"> <h4 id="tag_{{ .Title }}">
{{ if not .IsHome }} {{ .Params.description }} {{ end }} {{ if not .IsHome }} {{ .Params.description }} {{ end }}
</h4> </h4>
</header> </header>
<article> <article>
{{ block "main" . }} {{ block "main" . }}

View File

@ -3,6 +3,7 @@
{{- end }} {{- end }}
{{ define "main" -}} {{ define "main" -}}
{{ .Content }} {{ .Content }}
{{ if not .IsHome }}
<ul> <ul>
{{- range.Pages }} {{- range.Pages }}
<li> <li>
@ -18,3 +19,4 @@
{{- end }} {{- end }}
</ul> </ul>
{{- end }} {{- end }}
{{ end }}