diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2024-12-10 19:19:41 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2024-12-10 19:19:41 +0100 |
| commit | 9b6819f25fc860ea1c2dc84b61b7576b73aaa78c (patch) | |
| tree | 185434a7850644ed8397ebff319d9231bbc4bf43 | |
| parent | e379601ec1f1ca70f955f7ea9dd07775fb4da93b (diff) | |
feat(custom): better style and navbar
| -rw-r--r-- | scss/main.scss | 12 | ||||
| -rw-r--r-- | templates/page/custom_page.gohtml | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/scss/main.scss b/scss/main.scss index bd22152..6c1f316 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -236,3 +236,15 @@ h4 { padding: 0 2rem 1rem 2rem; border-radius: 32px; } + +.custom-page { + & h2 { + margin-bottom: 1rem; + } + & h3 { + margin-bottom: 0.5rem; + } + & ul { + list-style: disc inside; + } +} diff --git a/templates/page/custom_page.gohtml b/templates/page/custom_page.gohtml index 15bd0e9..4cb8078 100644 --- a/templates/page/custom_page.gohtml +++ b/templates/page/custom_page.gohtml @@ -1,6 +1,11 @@ {{define "body"}} <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 }} {{ .Get }} {{ end }} |
