diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/homepage/nav.html | 16 | ||||
-rw-r--r-- | layouts/partials/menu.html | 10 | ||||
-rw-r--r-- | layouts/partials/menu/item.html | 28 |
3 files changed, 28 insertions, 26 deletions
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}} |