hugo-tufte/layouts/index.html

27 lines
674 B
HTML
Raw Normal View History

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