summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRayHammer <evkondratyev@yandex.ru>2022-11-03 13:19:12 +0100
committerRayHammer <evkondratyev@yandex.ru>2022-11-03 13:19:12 +0100
commit9a53320db8d21aba579d3054c93053b8e2db4116 (patch)
tree2520f4c47554e885394bc87faa67aa95b51d0d8e
parent2c855fbf650adf3e06e6e17dc177be82d7deaed9 (diff)
Added menu sections to side bar
-rw-r--r--config.yaml12
-rw-r--r--content/_index.md6
-rw-r--r--themes/stingray/layouts/partials/aside.html9
3 files changed, 16 insertions, 11 deletions
diff --git a/config.yaml b/config.yaml
index 6bee7b4..251e36f 100644
--- a/config.yaml
+++ b/config.yaml
@@ -4,14 +4,14 @@ title: "RayHammer's Website"
theme: "stingray"
DefaultContentLanguage: "en"
-SectionPagesMenu: "tutorials"
+# sectionPagesMenu: "main"
menu:
- tutorials:
- identifier: "menus"
- name: "Tutorials"
- url: "/tutorials/"
- weight: 100
+ main:
+ - name: Blog
+ url: /posts/
+ - name: Tutorials
+ url: /tutorials/
params:
title: "rayhammer.dev"
diff --git a/content/_index.md b/content/_index.md
index 12d149e..4336ee4 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -12,8 +12,4 @@ My name is RayHammer, and I'm the least schizophrenic full-time Linux user.
This website is a small passion project I made using [Hugo](https://gohugo.io/).
It's still work in progress, but maybe it will become something bigger in the past.
-This will be my home for announcements, possible projects and maybe rants about tech and life in general.
-
-## Sections
-
-- [Tutorials](/tutorials) \ No newline at end of file
+This will be my home for announcements, possible projects and maybe rants about tech and life in general. \ No newline at end of file
diff --git a/themes/stingray/layouts/partials/aside.html b/themes/stingray/layouts/partials/aside.html
index c91c68c..dd31307 100644
--- a/themes/stingray/layouts/partials/aside.html
+++ b/themes/stingray/layouts/partials/aside.html
@@ -7,4 +7,13 @@
<span class="p-nickname">RayHammer</span>
</p>
</div>
+ <ul>
+ {{ range .Site.Menus.main }}
+ <li>
+ <a href="{{ .URL }}}">
+ {{ .Name }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
</aside> \ No newline at end of file