feat(custom): better style and navbar

This commit is contained in:
Anhgelus Morhtuuzh 2024-12-10 19:19:41 +01:00
parent e379601ec1
commit 9b6819f25f
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
2 changed files with 18 additions and 1 deletions

View file

@ -236,3 +236,15 @@ h4 {
padding: 0 2rem 1rem 2rem; padding: 0 2rem 1rem 2rem;
border-radius: 32px; border-radius: 32px;
} }
.custom-page {
& h2 {
margin-bottom: 1rem;
}
& h3 {
margin-bottom: 0.5rem;
}
& ul {
list-style: disc inside;
}
}

View file

@ -1,6 +1,11 @@
{{define "body"}} {{define "body"}}
<main class="custom-page" style="{{ .GetBackground }}"> <main class="custom-page" style="{{ .GetBackground }}">
<h2>{{ .Title }}</h2> <div class="header">
<h2>{{ .Title }}</h2>
<nav>
<a href="/">Home</a>
</nav>
</div>
{{ range $content := .Content }} {{ range $content := .Content }}
{{ .Get }} {{ .Get }}
{{ end }} {{ end }}