freedom/layouts/_default/list.html

42 lines
1.2 KiB
HTML
Raw Normal View History

2022-08-17 14:50:07 -04:00
<!DOCTYPE html>
<html>
<head>
{{partial "head" .}}
</head>
<body>
2022-08-22 20:03:48 -04:00
{{partial "header" .}}
<main>
<section>
{{ if .Content}}
<article>
{{.Content}}
</article>
2022-08-17 14:50:07 -04:00
{{end}}
2022-08-22 20:03:48 -04:00
{{ if .Pages }}
<article>
{{range .Pages}}
<section class="listing">
<div>
{{ if .Params.video}}
2022-09-05 19:26:00 -04:00
<video controls>
2022-08-22 20:03:48 -04:00
<source src="{{.Params.video}}">
</video>
{{else}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}">
</a>
{{end}}
</div>
<div>
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
<p>{{.Params.description}}</p>
</div>
</section>
{{end}}
</article>
{{end}}
</main>
2022-08-17 14:50:07 -04:00
{{partial "footer" .}}
2022-08-22 20:03:48 -04:00
</body>
2022-08-17 14:50:07 -04:00
</html>