fix: Layout and theme
This commit is contained in:
24
layouts/posts/list.html
Normal file
24
layouts/posts/list.html
Normal 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 */}}
|
||||
Reference in New Issue
Block a user