aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2024-12-10 19:19:41 +0100
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2024-12-10 19:19:41 +0100
commit9b6819f25fc860ea1c2dc84b61b7576b73aaa78c (patch)
tree185434a7850644ed8397ebff319d9231bbc4bf43
parente379601ec1f1ca70f955f7ea9dd07775fb4da93b (diff)
feat(custom): better style and navbar
-rw-r--r--scss/main.scss12
-rw-r--r--templates/page/custom_page.gohtml7
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 }}