aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-16 06:51:37 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-16 06:51:37 -0400
commit5634e70571eac6d9e525cce3cf4186478a04f223 (patch)
treeea757a21051a5140089fd0e206328c567559e8da /themes/polaris
parenteab0d3ff03c66cd0f41eab2c84b43089687c96b0 (diff)
add new post, add new pages, move about content to home, and more
Diffstat (limited to 'themes/polaris')
-rw-r--r--themes/polaris/assets/css/style.css2
-rw-r--r--themes/polaris/layouts/_default/baseof.html6
-rw-r--r--themes/polaris/layouts/partials/nav.html7
3 files changed, 10 insertions, 5 deletions
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css
index 6f449a3..1ca72e4 100644
--- a/themes/polaris/assets/css/style.css
+++ b/themes/polaris/assets/css/style.css
@@ -157,5 +157,5 @@ pre {
}
code {
- font-size: 125%;
+ font-size: 110%;
}
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>