Theme: basic styles + posts list

This commit is contained in:
DarkCat09 2023-11-04 19:53:00 +04:00
parent dddc15d915
commit 0fe0e0a38b
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
5 changed files with 66 additions and 18 deletions

View file

@ -1,7 +1,6 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ partial "post-item.html" . }}
{{ end }}
{{ end }}

View file

@ -2,7 +2,6 @@
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ partial "post-item.html" . }}
{{ end }}
{{ end }}

View file

@ -0,0 +1,9 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<div class="tag-item">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
{{ end }}
{{ end }}

View file

@ -0,0 +1,4 @@
<div class="post-item">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<div>{{ .Summary }}</div>
</div>