feat(custom): better style and navbar
This commit is contained in:
parent
e379601ec1
commit
9b6819f25f
2 changed files with 18 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
{{define "body"}}
|
{{define "body"}}
|
||||||
<main class="custom-page" style="{{ .GetBackground }}">
|
<main class="custom-page" style="{{ .GetBackground }}">
|
||||||
|
<div class="header">
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
|
<nav>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
{{ range $content := .Content }}
|
{{ range $content := .Content }}
|
||||||
{{ .Get }}
|
{{ .Get }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue