diff options
author | frosty <passedgoandgot200@disroot.org> | 2025-06-16 06:51:37 -0400 |
---|---|---|
committer | frosty <passedgoandgot200@disroot.org> | 2025-06-16 06:51:37 -0400 |
commit | 5634e70571eac6d9e525cce3cf4186478a04f223 (patch) | |
tree | ea757a21051a5140089fd0e206328c567559e8da /themes/polaris/layouts | |
parent | eab0d3ff03c66cd0f41eab2c84b43089687c96b0 (diff) |
add new post, add new pages, move about content to home, and more
Diffstat (limited to 'themes/polaris/layouts')
-rw-r--r-- | themes/polaris/layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | themes/polaris/layouts/partials/nav.html | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html index df0c651..1b34f99 100644 --- a/themes/polaris/layouts/_default/baseof.html +++ b/themes/polaris/layouts/_default/baseof.html @@ -2,12 +2,16 @@ <html> <head> <meta charset="utf-8"> - <title>{{ .Site.Title }}</title> + <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="icon" href="/img/pfp.png"> {{ $notoSerif := resources.Get "css/noto-serif.css" | minify | fingerprint }} <link rel="stylesheet" href="{{ $notoSerif.Permalink }}"> {{ $style := resources.Get "css/style.css" | minify | fingerprint }} <link rel="stylesheet" href="{{ $style.Permalink }}"> + {{ with .OutputFormats.Get "rss" }} + {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} + {{ end }} </head> <body> <nav> diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html index 56d2fa9..dc1e463 100644 --- a/themes/polaris/layouts/partials/nav.html +++ b/themes/polaris/layouts/partials/nav.html @@ -1,15 +1,16 @@ <div class="nav-over"> <div class="nav-title"> <h2><a href="/">{{ site.Title }}</a></h2> - {{ with site.Params.subtext }}<span class="nav-subtext">{{ . }}</span>{{ end }} + {{ $subtext := .Params.subtext | default .Site.Params.subtext }} + {{ with $subtext }}<span class="nav-subtext">{{ . }}</span>{{ end }} </div> <ul> {{ $currentPage := . }} {{ range site.Menus.left_nav }} - <li><a class="nav-link link-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} link-active {{ end }}" href=" {{ .URL }}">{{ .Name }}</a></li> + <li><a class="nav-link link-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li> {{ end }} {{ range site.Menus.right_nav }} - <li><a class="nav-link link-right" href=" {{ .URL }}">{{ .Name }}</a></li> + <li><a class="nav-link link-right {{ if $currentPage.IsMenuCurrent "right_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li> {{ end }} </ul> </div> |