diff --git a/config/_default/config.toml b/config/_default/config.toml index a3e4e96..ef80ac2 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -1,9 +1,9 @@ baseURL = "https://syllabus.pirate.care" languageCode = "en-us" title = "Pirate Care" -theme = "piratecare" +theme = "sandpoints" relativeurls = true -disableKinds = ["RSS", "sitemap", "taxonomy"] +disableKinds = ["RSS", "sitemap"] [params] description = "Network of activists, researchers and practitioners against the criminalisation of solidarity & for a common care infrastructure." @@ -22,4 +22,4 @@ disableKinds = ["RSS", "sitemap", "taxonomy"] [markup.tableOfContents] endLevel=4 ordered = false - startLevel = 1 \ No newline at end of file + startLevel = 1 diff --git a/themes/piratecare/layouts/metadata/list.js.js b/themes/piratecare/layouts/metadata/list.js.js index c13da94..2768a68 100644 --- a/themes/piratecare/layouts/metadata/list.js.js +++ b/themes/piratecare/layouts/metadata/list.js.js @@ -1 +1 @@ -{{ define "main" }}SECTIONS=[{{ range .Site.Sections }}{"section": "{{ trim .File.Dir "/" }}", "items": [{{ range .Pages }}"{{ .File.BaseFileName }}", {{ end }}]}, {{ end }}];{{ end }} +{{ define "main" }}SECTIONS=[{{ range .Site.Sections }}{"section": "{{ with .File }}{{ trim .Dir "/" }}{{ end }}", "items": [{{ range .Pages }}"{{ .File.BaseFileName }}", {{ end }}]}, {{ end }}];{{ end }} diff --git a/themes/sandpoints/assets/css/site.css b/themes/sandpoints/assets/css/site.css index e1846af..7f0ab2f 100644 --- a/themes/sandpoints/assets/css/site.css +++ b/themes/sandpoints/assets/css/site.css @@ -453,7 +453,7 @@ body { } .sup:hover { - font-weight: normal !important ; + font-weight: normal !important; } .syllabustitle { @@ -568,6 +568,12 @@ blockquote { background-color: #fff9f9; } -header { - font-size: 1.1rem; +.header { + position: sticky; + position: -webkit-sticky; + top: 0; + padding-top: 0.5rem; + font-size: 1.1rem; + background-color: white; + z-index: 10; } diff --git a/themes/sandpoints/layouts/partials/header.html b/themes/sandpoints/layouts/partials/header.html index ed6d0fd..a6697f1 100644 --- a/themes/sandpoints/layouts/partials/header.html +++ b/themes/sandpoints/layouts/partials/header.html @@ -1,7 +1,7 @@ -
{{ $currentSession := . }} {{ if not .IsHome }} - {{ substr $.Site.Home.Title 0 1 }}{{ substr $.Site.Home.Title 1 }} +
+ {{ substr $.Site.Home.Title 0 1 }}{{ substr $.Site.Home.Title 1 }} {{ end }} {{ range where $.Site.RegularPages ".Section" "topic" }} @@ -9,4 +9,4 @@ ยป {{ .Title }} {{ end }} {{ end }} -
+