defiance-ng/layouts/_default/list.html

30 lines
615 B
HTML
Raw Normal View History

2022-07-20 14:27:20 -07:00
{{ define "main" }}
<style>
img {
max-width: 500px;
}
</style>
2022-07-20 14:27:20 -07:00
<h1>{{ .Title }}</h1>
{{ .Content }}
<ul id="artlist">
2022-09-06 14:09:19 -07:00
{{ range .Pages }}
<li data-tags="{{.Params.Tags}}">
2023-01-23 18:01:14 -08:00
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
2022-07-20 14:27:20 -07:00
{{ partial "metadata.html" . }}
2022-09-13 15:46:33 -07:00
{{ if .Params.cws }}
{{ else }}
<br><br>
2022-07-20 14:27:20 -07:00
<a href="{{ .RelPermalink }}">
{{ $regex := `<img\s*src="(.+?)">` }}
{{ $matches := findRE $regex .Content 1 }}
{{ range $matches }}
{{ . | safeHTML }}
{{ end }}
<p>{{ .Summary }}</p>
2022-07-20 14:27:20 -07:00
</a>
2022-09-13 15:46:33 -07:00
{{ end }}
</li>
2022-07-20 14:27:20 -07:00
{{ end }}
</ul>
{{ end }}