personal-website/layouts/_default/section.html

17 lines
461 B
HTML
Raw Permalink Normal View History

2023-09-01 11:02:21 +02:00
{{ define "page" }}
<content>
<h1>{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{ range .Pages }}
<div class="section-page-item">
2023-09-01 11:18:52 +02:00
<h3>{{ .Title }}</h3>
2023-09-03 20:29:35 +02:00
<div class="details">
<time class="float-left">{{ .PublishDate | time.Format ":date_medium" }}</time>
</div>
2023-09-01 11:02:21 +02:00
<div class="summary">{{ .Summary }}</div>
<a href="{{ .RelPermalink }}">Read more &rarr;</a>
</div>
{{ end }}
</content>
{{ end }}