add dedicated projects section template

This commit is contained in:
Adora Laura Kalb 2023-09-06 07:32:52 +02:00
parent 084c8f0eac
commit 9fa4b5a1ba
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

@ -28,3 +28,4 @@ hugo.linux
*.vsix
.DS_Store
.vscode/

View file

@ -0,0 +1,17 @@
{{ define "page" }}
<content>
<h1>{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{ range .Pages }}
<div class="section-page-item">
<h3>{{ .Title }}</h3>
<div class="details">
<time class="float-left">{{ .PublishDate | time.Format ":date_medium" }}</time>
</div>
<div class="summary">{{ .Summary }}</div>
<a href="{{ .RelPermalink }}">Read more &rarr;</a>
</div>
{{ end }}
</content>
{{ end }}