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

View file

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

View file

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

View file

@ -3,7 +3,7 @@
{{ if .social }} {{ if .social }}
<div class="social"> <div class="social">
{{ range .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 }} {{ end }}
</div> </div>
{{ end }} {{ end }}