baseddata.io/layouts/_default/list.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2024-08-01 14:06:16 +01:00
{{ define "main" }}
<div class="list-content-container">
2024-08-08 11:14:44 +01:00
<div class="page-content">
<h1>{{ .Title }}</h1>
{{ .Content }}
</div>
<div class="article-card-container">
2024-08-01 14:06:16 +01:00
{{ range.Pages }}
2024-08-08 23:18:52 +01:00
<div class="article-card">
2024-08-01 14:06:16 +01:00
<div class="article-card-info">
2024-08-08 23:18:52 +01:00
<div class="article-card-thumb">
<a href="{{ .RelPermalink }}">
<img
class="article-card-thumbnail"
src="{{ .Params.header_image }}"
/>
</a>
</div>
2024-08-01 14:06:16 +01:00
<div class="article-card-summary">
2024-08-08 23:18:52 +01:00
{{ template "partials/get-tags.html" . }}
<a href="{{ .RelPermalink }}">
<h3><strong>{{ .Title | safeHTML }}</strong></h3>
</a>
<p>
{{ .Summary | safeHTML }}
<i class="reading-time"
>({{ .ReadingTime }} minute{{ if (ne .ReadingTime 1) }}s{{ end
}})</i
>
</p>
2024-08-01 14:06:16 +01:00
<br />
2024-08-08 11:14:44 +01:00
<div class="article-card-author-row">
2024-08-08 23:18:52 +01:00
{{ with .Params.author }}
<strong><p class="author-name">{{ .name }}</p></strong>
{{ end }}
2024-08-08 11:14:44 +01:00
<time>{{ .Date.Format "January 2, 2006" }}</time>
</div>
2024-08-01 14:06:16 +01:00
</div>
</div>
2024-08-08 23:18:52 +01:00
</div>
2024-08-01 14:06:16 +01:00
{{ end }}
</div>
</div>
{{ end }}