add projects page; move to hugo;
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 1m59s
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 1m59s
This commit is contained in:
28
hugo/eliaskohout.de/layouts/_default/list.html
Normal file
28
hugo/eliaskohout.de/layouts/_default/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
{{- partial "background.html" . -}}
|
||||
|
||||
<main class="page-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<div class="project-grid">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}" class="project-card">
|
||||
{{ with .Params.image }}
|
||||
<img src="{{ . }}" alt="{{ $.Title }}" />
|
||||
{{ end }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
<p>{{ .Params.summary }}</p>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="back-link">
|
||||
<a href="/">← back</a>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user