hugo-tufte/layouts/index.html

27 lines
564 B
HTML
Raw Normal View History

2021-07-21 20:23:55 +02:00
{{ define "main" }}
<div id="layout" class="pure-g">
2023-04-15 01:36:29 +02:00
<article class="pure-u-1">
{{ partial "brand.html" . }}
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
{{ range where .Site.RegularPages "Type" "posts" }}
2021-07-21 20:23:55 +02:00
2023-04-15 01:36:29 +02:00
<h2 class="content-title">
{{ if .IsNode }}
<a href="{{ .Permalink }}">{{ .Title}}</a>
{{ else }}
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
{{ end }}
</h1>
2021-07-21 20:23:55 +02:00
2023-04-15 01:36:29 +02:00
<p>{{ truncate 140 .Summary }}</p>
2021-07-21 20:23:55 +02:00
2023-04-15 01:36:29 +02:00
{{ end }}
{{ partial "footer.html" . }}
</article>
</div>
2023-04-15 01:36:29 +02:00
{{ end }}