feat: theme and resources

This commit is contained in:
2025-11-30 11:42:28 +01:00
parent 804a3469b0
commit f81f866fab
37 changed files with 4200 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{{ define "main" }}
<article>
{{ with .Title -}}<h1>{{- . -}}</h1>{{- end }}
{{ with .Content -}}<div class="post-content">{{- . -}}</div>{{- end }}
<ul class="posts-list">
{{ range where .Paginator.Pages "Type" "!=" "page" }}
<li class="posts-list-item">
<a class="posts-list-item-title" href="{{ .RelPermalink }}">{{ .Title }}</a>
<span class="posts-list-item-description">
{{ partial "icon.html" (dict "ctx" $ "name" "calendar") }}
{{ .PublishDate.Format "Jan 2, 2006" }}
<span class="posts-list-item-separator">-</span>
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
{{ .ReadingTime }} min read
</span>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" $ }}
</article>
{{ end }}