sandpoint layout stuff..

This commit is contained in:
Marcell Mars 2020-08-20 01:21:03 +02:00
parent e3efd7c3e2
commit 5b82576849
4 changed files with 16 additions and 10 deletions

View File

@ -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."

View File

@ -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 }}

View File

@ -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;
}

View File

@ -1,7 +1,7 @@
<header>
{{ $currentSession := . }}
{{ if not .IsHome }}
<a href="{{ .Site.Home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ substr $.Site.Home.Title 0 1 }}</span><i>{{ substr $.Site.Home.Title 1 }}</i></a>
<div class="header">
<a href="{{ .Site.Home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ substr $.Site.Home.Title 0 1 }}</span><i>{{ substr $.Site.Home.Title 1 }}</i></a>
{{ end }}
{{ range where $.Site.RegularPages ".Section" "topic" }}
@ -9,4 +9,4 @@
<i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i>
{{ end }}
{{ end }}
</header>
</div>