fixed homepage list issue
This commit is contained in:
parent
11269d351b
commit
1b7552e97a
@ -2,6 +2,6 @@
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
description: "Example"
|
||||
tags: ['']
|
||||
tags: ['blog']
|
||||
draft: true
|
||||
---
|
@ -25,7 +25,6 @@
|
||||
<h4 id="tag_{{ .Title }}">
|
||||
{{ if not .IsHome }} {{ .Params.description }} {{ end }}
|
||||
</h4>
|
||||
|
||||
</header>
|
||||
<article>
|
||||
{{ block "main" . }}
|
||||
|
@ -3,6 +3,7 @@
|
||||
{{- end }}
|
||||
{{ define "main" -}}
|
||||
{{ .Content }}
|
||||
{{ if not .IsHome }}
|
||||
<ul>
|
||||
{{- range.Pages }}
|
||||
<li>
|
||||
@ -15,3 +16,4 @@
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user