ADD post list

This commit is contained in:
Hoernschen 2023-12-27 00:23:25 +01:00
parent 826abcd7ae
commit 04f1dd0327
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
4 changed files with 26 additions and 12 deletions

View file

@ -106,7 +106,7 @@ a {
.header > .items > .item {
align-self: center;
padding-inline-end: 10px;
padding-inline-end: 16px;
}
/* Footer */
@ -121,12 +121,17 @@ a {
.footer > .social {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.footer > .social i {
font-size: x-large;
}
.footer > .social a {
padding-inline: 3px;
padding-inline: 6px;
color: {{ .Site.Params.color.primary }};
}
@ -162,6 +167,10 @@ a {
flex-direction: column;
}
.title h1 {
font-size: xx-large;
}
.content {
padding-top: 9rem;
padding-bottom: 2rem;

View file

@ -1,14 +1,19 @@
{{ define "main" }}
{{ if .Content }}
{{ if .Title }}
<!-- TODO -->
<div class="content">
{{ with .Title }}
<article>
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<h1>{{ .Title }}</h1>
<div class="divider"></div>
</div>
{{ end }}
{{.Content}}
</article>
<div class="list">
{{ range .Pages }}
<a href="{{.Permalink}}"><p>{{ .Title }}</p></a>
{{ end }}
</div>
</div>
{{ else }}
<div class="header-blocker"></div>

View file

@ -9,7 +9,7 @@
<div class="content">
{{ with .Title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<h1>{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}

View file

@ -3,7 +3,7 @@
{{ if .social }}
<div class="social">
{{ range .social }}
<a href="{{ .url }}"><i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i></a>
<a href="{{ .url }}"><i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i>{{ if .text }} {{ .text }} {{ end }}</a>
{{ end }}
</div>
{{ end }}