include _index.html in autogenerated pages, remove 'time to read' estimates

This commit is contained in:
Ben Charlton 2024-04-14 13:26:45 +01:00
parent b10b9143d6
commit 4193a15b0e
3 changed files with 15 additions and 8 deletions

View file

@ -1,6 +1,11 @@
{{ define "main" -}}
<ul class="posts">
<h1>{{ .Title }}</h1>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{ .Content }}
</div>
{{ range .Data.Pages -}}
<li>
<div class="flex">

View file

@ -3,11 +3,6 @@
<h1 class="title">{{ .Title }}</h1>
{{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }}
{{ if ne .Type "page" -}}
<div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">&middot; {{ .ReadingTime }} min read</span>
</div>
{{- end }}
<div>
{{ .Content }}