fix: Layout and theme

This commit is contained in:
SauravDhakal
2026-04-01 10:33:28 +05:45
parent 38baeb86e8
commit 0c4e6715de
6 changed files with 243 additions and 15 deletions

24
layouts/posts/list.html Normal file
View File

@@ -0,0 +1,24 @@
{{- define "main" }}
<header class="page-header">
<h1>{{ .Title }}</h1>
{{- if .Description }}
<div class="post-description">{{ .Description }}</div>
{{- end }}
</header>
<ul class="posts-list">
{{- range .Pages }}
<li class="post-item">
<a href="{{ .Permalink }}">
<span class="post-title"># {{ .Title }}</span>
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
</a>
{{- if .Summary }}
<p class="post-summary">{{ .Summary | plainify | truncate 150 }}</p>
{{- end }}
</li>
{{- end }}
</ul>
{{- end }}{{/* end main */}}