summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-04-28 19:41:51 +0200
committermms <michal@sapka.me>2024-04-28 19:41:51 +0200
commit4ddec44e9aaf64e63e65615a1f1f17d14edea928 (patch)
treed29d0631730d36f74d19ecedaa8201046ac3d158
parent36b839da7070552549b63e07004c4011eb88e392 (diff)
feat: top copy
-rw-r--r--config/_default/menus.en.toml51
-rw-r--r--layouts/partials/homepage/nav.html16
-rw-r--r--layouts/partials/menu.html10
-rw-r--r--layouts/partials/menu/item.html28
4 files changed, 60 insertions, 45 deletions
diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml
index 40aee1d..9fa1d72 100644
--- a/config/_default/menus.en.toml
+++ b/config/_default/menus.en.toml
@@ -1,55 +1,68 @@
[[main-nav]]
- name = "Blog"
- weight = "100"
+ name = "blog"
pageRef = "/blog"
+ pre = "Read my"
+ weight = 10
[[main-nav]]
name = "Links"
- weight = "110"
pageRef = "/links"
-
+ post = "to other sites"
+ weight = 20
+
[[main-nav]]
- name = "Funnies"
- weight = "110"
- url = "/funnies/c"
+ name = "funny pictures"
+ url = "/funnies/c/"
+ pre = "Browse my collection of"
+ post = "(over 5000)"
+ weight = 30
[[main-nav]]
- name = "VCS"
- weight = "120"
+ name = "code repository"
url = "/git/"
+ pre = "Source"
+ weight = 50
[[main-nav]]
+ name = "Articles"
+ pageRef = "/articles"
+ weight = 40
+
+[[main-nav]]
name = "Me"
- weight = "130"
pageRef = "/"
+ weight = 60
[[main-nav.params]]
nonpage = "yes"
- inlineChildren = "yes"
+ inlineChildren = "yes"
+
+[[main-nav]]
+ pre = "Buy me a"
+ name = "Ko-fi"
+ url = "https://ko-fi.com/mmspl"
+ weight = 70
[[main-nav]]
name = "Uses"
- weight = "130"
pageRef = "/me/uses"
parent = "Me"
[[main-nav]]
name = "Now"
- weight = "130"
pageRef = "/me/now"
parent = "Me"
-[[main-nav]]
- name = "Articles"
- weight = "140"
- pageRef = "/articles"
[[main-nav]]
- name = "Contact"
- weight = "140"
+ name = "Contact me"
pageRef = "/me/contact"
parent = "Me"
+
+
+
+
[[bsd-history]]
name = "Unix Wars"
weight = "10000000"
diff --git a/layouts/partials/homepage/nav.html b/layouts/partials/homepage/nav.html
index 272488a..8169566 100644
--- a/layouts/partials/homepage/nav.html
+++ b/layouts/partials/homepage/nav.html
@@ -6,12 +6,16 @@
<section style="display: flow-root">
<h2>About</h2>
-
- Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland.
- This website is not dedicated to any particular one thing.
- Instead, I write whatever interests me most at the moment.
+ Hey! I'm Michał Sapka and you've stumbled upon my personal website.
+ This marvel of modern engineering is modeled upon Web 1.0.
+ It's not dedicated to one thing, but rather it's about a few things that interest me.
+ Bellow you can find sections which I would describe as online books.
+ <a href="/brain-rot">Brain Rots</a> describe movies, books and games.
+ <a href="/bsd"/>BSD</a> and <a href="/emasc">Emacs</a> are quite self-explanatory.
+ I take special fondness of <a href="/star-trek">Star Trek</a> so it is a section of its own.
+ I also have a dedicated <a href="/blog">blog</a>, but this site is not a blog.
<img
- alt="Mihal"
+ alt="Michal"
style="float: right; max-width: 20%;"
src="{{ $img1x.Permalink }}"
srcset="
@@ -21,8 +25,6 @@
width="{{ $img1x.Width }}"
height="{{ $img1x.Height }}"
>
- No content here is auto-generated, so any bugs, problems, or controversies are entirely on me!
-
{{ partial "menu.html" (dict "menuID" "main-nav" "page" .) }}
</section>
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index b27d498..15da3f9 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -13,17 +13,7 @@
{{- $page := .page }}
{{- range .menuEntries }}
{{- partial "menu/item.html" (dict "page" $page "item" .) }}
-
- {{- if .Params.inlineChildren}}
- {{- with .Children }}
- - {{- partial "inline/menu/inline.html" (dict "page" $page "menuEntries" .) }}
- {{- end}}
- {{- else}}
- {{- with .Children }}
- <ul>{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}</ul>
- {{- end }}
- {{- end}}
{{- end }}
{{- end }}
diff --git a/layouts/partials/menu/item.html b/layouts/partials/menu/item.html
index 599f2db..f50d604 100644
--- a/layouts/partials/menu/item.html
+++ b/layouts/partials/menu/item.html
@@ -4,28 +4,38 @@
{{- if $pageItem.Params.menu_item_override }}
- {{- if $pageItem.Params.menu_item_override_start_li }}
- <li>
- {{- end}}
+ {{- if $pageItem.Params.menu_item_override_start_li }}<li>{{- end}}
{{$item.Pre}}<b><a href="{{ $item.URL }}">{{ $pageItem.Params.menu_item_override }}</a></b>{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}{{$item.Post}}
- {{- if $pageItem.Params.menu_item_override_end_li }}
- </li>
- {{- end}}
+
+ {{- if $pageItem.Params.menu_item_override_end_li }}</li>{{- end}}
{{- else}}
<li>
{{- if $item.Params.nonpage }}
- {{$item.Name }}{{ $item.Post }}
+ {{ $item.Pre}} {{$item.Name }} {{ $item.Post }}
{{- else if $item.Params.placeholder }}
- <span class="placeholder">{{$item.Name }}{{ $item.Post }}</span>
+ <span class="placeholder">{{ $item.Pre }}{{$item.Name }}{{ $item.Post }}</span>
{{- else}}
- <b><a href="{{ $item.URL }}">{{ $item.Name }}</a></b>
+ {{$item.Pre}} <b><a href="{{ $item.URL }}">{{ $item.Name }}</a></b>
{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}
{{ $item.Post }}
{{- end}}
+
+ {{- if $item.Params.inlineChildren}}
+ {{- with $item.Children }}
+ - {{- partial "inline/menu/inline.html" (dict "page" $page "menuEntries" .) }}
+ {{- end}}
+
+ {{- else}}
+ {{- with $item.Children }}
+ <ul>{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}</ul>
+ {{- end }}
+ {{- end}}
+
+
</li>
{{- end}}