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" baseURL = "https://syllabus.pirate.care"
languageCode = "en-us" languageCode = "en-us"
title = "Pirate Care" title = "Pirate Care"
theme = "piratecare" theme = "sandpoints"
relativeurls = true relativeurls = true
disableKinds = ["RSS", "sitemap", "taxonomy"] disableKinds = ["RSS", "sitemap"]
[params] [params]
description = "Network of activists, researchers and practitioners against the criminalisation of solidarity & for a common care infrastructure." 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

@ -568,6 +568,12 @@ blockquote {
background-color: #fff9f9; background-color: #fff9f9;
} }
header { .header {
position: sticky;
position: -webkit-sticky;
top: 0;
padding-top: 0.5rem;
font-size: 1.1rem; font-size: 1.1rem;
background-color: white;
z-index: 10;
} }

View File

@ -1,6 +1,6 @@
<header>
{{ $currentSession := . }} {{ $currentSession := . }}
{{ if not .IsHome }} {{ if not .IsHome }}
<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> <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 }} {{ end }}
@ -9,4 +9,4 @@
<i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i> <i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i>
{{ end }} {{ end }}
{{ end }} {{ end }}
</header> </div>