pulled from arche-syllabus

This commit is contained in:
Sean Dockray 2020-06-06 23:21:46 +10:00
parent e4a46c5357
commit a892df3389
38 changed files with 2262 additions and 6 deletions

View File

@ -1,14 +1,14 @@
baseURL = "https://syllabus.pirate.care"
baseURL = "http://machinelistening.thepublicschool.org"
languageCode = "en-us"
title = "Pirate Care"
theme = "piratecare"
title = "Machine Listening"
theme = "machinelistening"
relativeurls = true
disableKinds = ["RSS", "sitemap", "taxonomy"]
[params]
description = "Network of activists, researchers and practitioners against the criminalisation of solidarity & for a common care infrastructure."
images = ["/images/piratecaqre.png"]
title = "Pirate Care Syllabus"
title = "Machine Listening Syllabus"
giturl = "https://git.memoryoftheworld.org/PirateCare/Syllabus"
[outputFormats]

View File

@ -1,4 +1,4 @@
/*!normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css*/html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}a{background-color:transparent}b{font-weight:bolder}img{border-style:none}input{font-family:inherit;font-size:100%;line-height:1.15;margin:0}input{overflow:visible}[type=checkbox]{box-sizing:border-box;padding:0}template{display:none}p{margin:0}ul{list-style:none;margin:0;padding:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;line-height:1.5}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}img{border-style:solid}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}table{border-collapse:collapse}a{color:inherit;text-decoration:inherit}input{padding:0;line-height:inherit;color:inherit}img,svg{display:block;vertical-align:middle}img{max-width:100%;height:auto}.bg-CoconutCream{background-color:#f2f6d5}.bg-AuChico{background-color:#996561}.border-CoconutCream{border-color:#f2f6d5}.border-b-8{border-bottom-width:8px}.cursor-pointer{cursor:pointer}.block{display:block}.flex{display:-webkit-box;display:flex}.table{display:table}.justify-between{-webkit-box-pack:justify;justify-content:space-between}.font-vg5000{font-family:vg5000-regular,sans}.font-playfair{font-family:playfairdisplay regular,sans}.font-bold{font-weight:700}.h-full{height:100%}.leading-none{line-height:1}.mx-4{margin-left:1rem;margin-right:1rem}.mb-1{margin-bottom:.25rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-8{margin-top:2rem}.mb-12{margin-bottom:3rem}.p-1{padding:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pr-4{padding-right:1rem}.pt-6{padding-top:1.5rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pt-16{padding-top:4rem}.pt-32{padding-top:8rem}.static{position:static}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.text-CoconutCream{color:#f2f6d5}.text-xs{font-size:.75rem}.text-base{font-size:1rem}.italic{font-style:italic}.z-10{z-index:10}@font-face{font-family:playfairdisplay regular;font-weight:400;src:url(../fonts/PlayfairDisplay-Regular.woff)format('woff')}@font-face{font-family:vg5000-regular;font-weight:400;src:url(../fonts/VG5000-Regular_web.woff)format('woff')}html{font-size:1.2em;background-color:#f2f6d5}img{padding-top:.5rem;padding-bottom:.5rem}h1{font-size:1.875rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}h2{font-size:1.5rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}h3{font-size:1.25rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}blockquote{font-style:italic}p{padding-bottom:.5rem;line-height:1.25}footer{font-family:vg5000-regular,sans;font-size:.75rem;color:#29102f}article ul{position:relative;list-style-type:none;margin-left:0;padding-left:.75rem}article ul li:before{font-family:vg5000-regular,sans;color:#996561;font-size:.75rem;left:0;position:absolute;padding-top:.5rem;padding-bottom:.5rem;content:"•"}article li{padding-left:.5rem}a{color:#996561}a:hover{text-decoration:underline}.edit-button{border-bottom-width:4px;border-color:#f2f6d5;padding-left:.25rem;padding-right:.25rem;background-color:#996561;margin-bottom:.5rem;font-family:vg5000-regular,sans;color:#f2f6d5}.edit-button:hover{background-color:#f2f6d5;color:#996561;border-bottom-width:2px;border-color:#996561}.title-text{font-family:playfairdisplay regular,sans;font-size:2.25rem;color:#996561}.title-pretext{font-family:vg5000-regular,sans;font-size:1rem;color:#996561}.content-text{font-family:playfairdisplay regular,sans;font-size:1.25rem;color:#29102f}.sidebar-title{font-family:vg5000-regular,sans;font-size:1rem;color:#996561}.sidebar-list{font-family:vg5000-regular,sans;font-size:1.25rem;color:#996561}.logo{font-family:vg5000-regular,sans;font-size:1.25rem;color:#996561;padding-top:.5rem}.ddmenu .sidebar-title{cursor:pointer}.ddmenu input{display:none}.ddmenu .hiddendiv{padding-bottom:.25rem;display:none}.ddmenu input:not(:checked)~.hiddendiv{display:block;padding-bottom:1rem}#TableOfContents{font-family:vg5000-regular,sans;font-size:1.25rem;color:#996561;margin-left:-.5rem}#TableOfContents ul{margin-left:.5rem}#TableOfContents li:before{content:"> "}@page{size:A4}@page:first{@bottom{content: none;
/*!normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css*/html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}a{background-color:transparent}b{font-weight:bolder}img{border-style:none}input{font-family:inherit;font-size:100%;line-height:1.15;margin:0}input{overflow:visible}[type=checkbox]{box-sizing:border-box;padding:0}template{display:none}p{margin:0}ul{list-style:none;margin:0;padding:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;line-height:1.5}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}img{border-style:solid}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}table{border-collapse:collapse}a{color:inherit;text-decoration:inherit}input{padding:0;line-height:inherit;color:inherit}img,svg{display:block;vertical-align:middle}img{max-width:100%;height:auto}.bg-CoconutCream{background-color:#f2efea}.bg-AuChico{background-color:#820263}.border-CoconutCream{border-color:#f2efea}.border-b-8{border-bottom-width:8px}.cursor-pointer{cursor:pointer}.block{display:block}.flex{display:-webkit-box;display:flex}.table{display:table}.justify-between{-webkit-box-pack:justify;justify-content:space-between}.font-vg5000{font-family:vg5000-regular,sans}.font-playfair{font-family:playfairdisplay regular,sans}.font-bold{font-weight:700}.h-full{height:100%}.leading-none{line-height:1}.mx-4{margin-left:1rem;margin-right:1rem}.mb-1{margin-bottom:.25rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-8{margin-top:2rem}.mb-12{margin-bottom:3rem}.p-1{padding:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pr-4{padding-right:1rem}.pt-6{padding-top:1.5rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pt-16{padding-top:4rem}.pt-32{padding-top:8rem}.static{position:static}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.text-CoconutCream{color:#f2efea}.text-xs{font-size:.75rem}.text-base{font-size:1rem}.italic{font-style:italic}.z-10{z-index:10}@font-face{font-family:playfairdisplay regular;font-weight:400;src:url(../fonts/PlayfairDisplay-Regular.woff)format('woff')}@font-face{font-family:vg5000-regular;font-weight:400;src:url(../fonts/VG5000-Regular_web.woff)format('woff')}html{font-size:1.2em;background-color:#f2efea}img{padding-top:.5rem;padding-bottom:.5rem}h1{font-size:1.875rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}h2{font-size:1.5rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}h3{font-size:1.25rem;-webkit-column-break-after:avoid;-moz-column-break-after:avoid;break-after:avoid}blockquote{font-style:italic}p{padding-bottom:.5rem;line-height:1.25}footer{font-family:vg5000-regular,sans;font-size:.75rem;color:#23022e}article ul{position:relative;list-style-type:none;margin-left:0;padding-left:.75rem}article ul li:before{font-family:vg5000-regular,sans;color:#820263;font-size:.75rem;left:0;position:absolute;padding-top:.5rem;padding-bottom:.5rem;content:"•"}article li{padding-left:.5rem}a{color:#820263}a:hover{text-decoration:underline}.edit-button{border-bottom-width:4px;border-color:#f2efea;padding-left:.25rem;padding-right:.25rem;background-color:#820263;margin-bottom:.5rem;font-family:vg5000-regular,sans;color:#f2efea}.edit-button:hover{background-color:#f2efea;color:#820263;border-bottom-width:2px;border-color:#820263}.title-text{font-family:playfairdisplay regular,sans;font-size:2.25rem;color:#820263}.title-pretext{font-family:vg5000-regular,sans;font-size:1rem;color:#820263}.content-text{font-family:playfairdisplay regular,sans;font-size:1.25rem;color:#23022e}.sidebar-title{font-family:vg5000-regular,sans;font-size:1rem;color:#820263}.sidebar-list{font-family:vg5000-regular,sans;font-size:1.25rem;color:#820263}.logo{font-family:vg5000-regular,sans;font-size:1.25rem;color:#820263;padding-top:.5rem}.ddmenu .sidebar-title{cursor:pointer}.ddmenu input{display:none}.ddmenu .hiddendiv{padding-bottom:.25rem;display:none}.ddmenu input:not(:checked)~.hiddendiv{display:block;padding-bottom:1rem}#TableOfContents{font-family:vg5000-regular,sans;font-size:1.25rem;color:#820263;margin-left:-.5rem}#TableOfContents ul{margin-left:.5rem}#TableOfContents li:before{content:"> "}@page{size:A4}@page:first{@bottom{content: none;
}}@page{margin-bottom:5mm;@top{color: #996561;
font-size: 1rem;
@ -16,4 +16,4 @@
content: "▒▒ 🐟 ▒ ▒▒▒ 🐙 ▒▒▒🏃 ▒▒☄▒ PAGE: " counter(page) " ▒ ▒▒▒▒ ⚡ ▒🔍▒ ☠ ▒ ▒▒▒";
}}@page topic:first{@top{content: none;
}}@media print{body{background-color:#f2f6d5;color:#29102f;font-family:playfairdisplay regular,sans}.runningTopic{position:running(topic)}.topic{-webkit-column-break-before:page;-moz-column-break-before:page;break-before:page;page:topic}.title-text{font-family:playfairdisplay regular,sans;font-size:4rem;color:#996561;margin-bottom:5rem}.title-pretext{font-family:vg5000-regular,sans;font-size:1.5rem;color:#996561}.topic-text{font-family:playfairdisplay regular,sans;font-size:2.25rem;color:#996561;margin-bottom:5rem}.topic-pretext{font-family:vg5000-regular,sans;font-size:1.5rem;color:#996561}article ul li:before{content:""}.toc::after{text-align:right;float:right;content:target-counter(attr(href url),page,decimal-leading-zero)}}@media(max-width:767px){.md\:flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.md\:w-full{width:100%}}@media(min-width:768px){.lg\:flex{display:-webkit-box;display:flex}.lg\:static{position:static}.lg\:sticky{position:-webkit-sticky;position:sticky}.lg\:top-0{top:0}.lg\:w-2\/5{width:40%}.lg\:w-3\/5{width:60%}}
}}@media print{body{background-color:#f2efea;color:#23022e;font-family:playfairdisplay regular,sans}.runningTopic{position:running(topic)}.topic{-webkit-column-break-before:page;-moz-column-break-before:page;break-before:page;page:topic}.title-text{font-family:playfairdisplay regular,sans;font-size:4rem;color:#820263;margin-bottom:5rem}.title-pretext{font-family:vg5000-regular,sans;font-size:1.5rem;color:#820263}.topic-text{font-family:playfairdisplay regular,sans;font-size:2.25rem;color:#820263;margin-bottom:5rem}.topic-pretext{font-family:vg5000-regular,sans;font-size:1.5rem;color:#820263}article ul li:before{content:""}.toc::after{text-align:right;float:right;content:target-counter(attr(href url),page,decimal-leading-zero)}}@media(max-width:767px){.md\:flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.md\:w-full{width:100%}}@media(min-width:768px){.lg\:flex{display:-webkit-box;display:flex}.lg\:static{position:static}.lg\:sticky{position:-webkit-sticky;position:sticky}.lg\:top-0{top:0}.lg\:w-2\/5{width:40%}.lg\:w-3\/5{width:60%}}

2
themes/machinelistening/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/node_modules
/node_modules*

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2020 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,3 @@
---
title: "{{ replace .Name "-" " " | title }}"
---

View File

@ -0,0 +1,3 @@
---
title: "{{ replace .Name "-" " " | title }}"
---

View File

@ -0,0 +1,4 @@
---
title: "{{ replace .Name "-" " " | title }}"
has_sessions:
---

View File

@ -0,0 +1,11 @@
const themeDir = __dirname + '/../../../';
module.exports = {
plugins: [
require('postcss-import')({
path: [themeDir]
}),
require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
require('autoprefixer'),
]
}

View File

@ -0,0 +1,28 @@
const themeDir = __dirname + '/../../';
module.exports = {
plugins: [
require('postcss-import')({
path: [themeDir]
}),
require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
// Configuration of purgecss for Tailwindcss
// see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss
require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: [
themeDir + 'layouts/**/*.html',
themeDir + 'exampleSite/content/**/*.html',
'layouts/**/*.html',
'content/**/*.html',
],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[A-Za-z0-9-_:\/]+/g) || [],
fontFace: true
}),
require('autoprefixer')({
grid: true
}),
require('postcss-reporter'),
]
}

View File

@ -0,0 +1,75 @@
/* paged.js style */
@page {
size: A4;
}
@page :first {
@bottom {
content: none;
}
}
@page {
margin-bottom: 5mm;
@top {
color: #996561;
font-size: 1rem;
font-family: 'VG5000-Regular';
content: element(topic);
}
@bottom {
color: #996561;
font-size: 0.5rem;
font-family: 'VG5000-Regular';
content: "▒▒ 🐟 ▒ ▒▒▒ 🐙 ▒▒▒🏃 ▒▒☄▒ PAGE: " counter(page) " ▒ ▒▒▒▒ ⚡ ▒🔍▒ ☠ ▒ ▒▒▒";
}
}
@page topic:first {
@top {
content: none;
}
}
@media print {
body {
@apply bg-CoconutCream text-Revolver font-playfair;
}
.runningTopic {
position: running(topic);
}
.topic {
break-before: page;
page: topic;
}
.title-text {
@apply font-playfair text-6xl text-AuChico mb-20;
}
.title-pretext {
@apply font-vg5000 text-2xl text-AuChico;
}
.topic-text {
@apply font-playfair text-4xl text-AuChico mb-20;
}
.topic-pretext {
@apply font-vg5000 text-2xl text-AuChico;
}
article ul li:before {
content: "";
}
.toc::after {
text-align: right;
float: right;
content: target-counter(attr(href url), page, decimal-leading-zero);
}
}

View File

@ -0,0 +1,173 @@
@font-face {
font-family: 'PlayfairDisplay Black';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-Black.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay Italic';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-Italic.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay BlackItalic';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-BlackItalic.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay Bold';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-Bold.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay BoldItalic';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-BoldItalic.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay Regular';
font-weight: 400;
src: url("../fonts/PlayfairDisplay-Regular.woff") format('woff');
}
@font-face {
font-family: 'PlayfairDisplay SC-Regular';
font-weight: 400;
src: url("../fonts/PlayfairDisplaySC-Regular.woff") format('woff');
}
@font-face {
font-family: 'VG5000-Regular';
font-weight: 400;
src: url("../fonts/VG5000-Regular_web.woff") format('woff');
}
button, [type=button] {
-webkit-appearance: none;
}
html {
font-size: 1.2em;
@apply bg-CoconutCream;
}
img {
@apply py-2;
}
/* purgecss ignore */
h1 {
@apply text-3xl;
break-after: avoid;
}
/* purgecss ignore */
h2 {
@apply text-2xl;
break-after: avoid;
}
/* purgecss ignore */
h3 {
@apply text-xl;
break-after: avoid;
}
/* purgecss ignore */
blockquote {
@apply italic;
}
p {
@apply pb-2 leading-tight;
}
footer {
@apply font-vg5000 text-xs text-Revolver;
}
article ul {
@apply relative list-none ml-0 pl-3;
}
article ul li:before {
@apply font-vg5000 text-AuChico text-xs left-0 absolute pt-2 pb-2;
content: "•";
}
article li {
@apply pl-2;
}
a {
@apply text-AuChico;
}
a:hover {
@apply underline;
}
.edit-button {
@apply border-b-4 border-CoconutCream px-1 bg-AuChico mb-2 font-vg5000 text-CoconutCream;
}
.edit-button:hover {
@apply bg-CoconutCream text-AuChico border-b-2 border-AuChico;
}
.title-text {
@apply font-playfair text-4xl text-AuChico;
}
.title-pretext {
@apply font-vg5000 text-base text-AuChico;
}
.content-text {
@apply font-playfair text-xl text-Revolver;
}
.sidebar-title {
@apply font-vg5000 text-base text-AuChico;
}
.sidebar-list {
@apply font-vg5000 text-xl text-AuChico;
}
.logo {
@apply font-vg5000 text-xl text-AuChico pt-2;
}
/* dropdown menu */
.ddmenu .sidebar-title {
cursor: pointer;
}
.ddmenu input {
display: none;
}
.ddmenu .hiddendiv {
@apply pb-1 hidden;
}
.ddmenu input:not(:checked) ~ .hiddendiv {
@apply block pb-4;
}
#TableOfContents {
@apply font-vg5000 text-xl text-AuChico -ml-2;
}
#TableOfContents ul {
@apply ml-2;
}
#TableOfContents li:before {
content: "> ";
}

View File

@ -0,0 +1,6 @@
/* Tailwind base - put variables under: tailwind.config.js */
@import "node_modules/tailwindcss/base";
@import "node_modules/tailwindcss/components";
@import "node_modules/tailwindcss/utilities";
@import "assets/css/site.css";
@import "assets/css/print.css";

View File

@ -0,0 +1,20 @@
module.exports = {
theme: {
screens: {
'md': {'max': '767px'},
'lg': {'min': '768px'}
},
fontFamily: {
'vg5000': ['"VG5000-Regular"', 'sans'],
'playfair': ['"PlayfairDisplay Regular"', 'sans']
},
colors: {
CoconutCream: '#F2EFEA',
AuChico: '#820263',
Revolver: '#23022E'
},
extend: {}
},
variants: {},
plugins: []
};

View File

@ -0,0 +1,3 @@
{{ define "main" }}
<p>404 - page not found</p>
{{ end }}

View File

@ -0,0 +1,42 @@
{{- $text_link := .Text -}}
{{- if strings.HasPrefix .Destination "bib:" -}}
{{- $destination := (substr .Destination 4) -}}
{{- if index $.Page.Site.Data.books.piratecarecollection $destination -}}
{{- $b := index $.Page.Site.Data.books.piratecarecollection $destination -}}
{{- if not $text_link -}}
<span>{{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.<a href="/library/BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank"><i>{{- $b.title -}}</i></a>. {{- with $b.publisher -}}{{- . -}}.{{- end -}}</span>
{{- else -}}
<a href="/library/BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a>
{{- end -}}
{{- else -}}
<a href="/library/BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">bib:{{- $destination -}} not found</span></a>
{{- end -}}
{{- else if strings.HasPrefix .Destination "session:" -}}
{{- $s_destination := printf "/session/%s" (substr .Destination 8) -}}
{{- if $.Page.Site.GetPage $s_destination -}}
{{- $session := $.Page.Site.GetPage $s_destination -}}
{{- if not $text_link -}}
<a href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $session.Title}} title="{{- $session.Title -}}"{{- end -}}>{{- $session.Title -}}</a>
{{- else -}}
<a href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}</a>
{{- end -}}
{{- else -}}
<a href="{{- $s_destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">session:{{- $s_destination -}} not found</span></a>
{{- end -}}
{{- else if strings.HasPrefix .Destination "topic:" -}}
{{- $t_destination := printf "/topic/%s" (substr .Destination 6) -}}
{{- if $.Page.Site.GetPage $t_destination -}}
{{- $topic := $.Page.Site.GetPage $t_destination -}}
{{- if not $text_link -}}
<a href="{{- $topic.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $topic.Title}} title="{{- $topic.Title -}}"{{- end -}}>{{- $topic.Title -}}</a>
{{- else -}}
<a href="{{- $topic.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}</a>
{{- end -}}
{{- else -}}
<a href="{{- $t_destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">topic:{{- $t_destination -}} not found</span></a>
{{- end -}}
{{- else if findRE "^.*static" .Destination -}}
<img src="{{- (replaceRE "^.*static" "" .Destination ) | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} />
{{- else -}}
<img src="{{- .Destination | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} />
{{- end -}}

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
{{- $filePath := .File -}}
{{- $gitUrl := .Site.Params.giturl -}}
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{- partial "head.html" . -}}
{{ partialCached "css.html" . }}
<body class="mx-4">
{{ with .Site.Params.edit }}
<div class="flex justify-between sticky top-0 static border-b-8 z-10 border-CoconutCream bg-AuChico px-1 pt-2">
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ $filePath }}">edit_this</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/topic/">add_new_topic</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/session/">add_new_session</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
</div>
{{ end }}
{{- partial "header.html" . -}}
<main class="lg:flex mb-4 pt-2 justify-between md:flex-row">
<aside class="lg:w-2/5 pr-4 pt-16 lg:sticky lg:top-0 lg:static h-full mb-6 md:w-full">
{{- block "sidebar" . }}{{- end }}
</aside>
<article class="lg:w-3/5 pt-32 md:w-full">
{{- block "main" . }}{{- end }}
</article>
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,36 @@
{{ define "sidebar" }}
{{$currentNode := . }}
<div class="leading-none mb-12">
<span class="title-pretext">syllabus ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
</div>
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
<div class="ddmenu">
<input id="toggly-toc" type="checkbox" >
<label for="toggly-toc" class="sidebar-title" tabindex="1">▒▒ table of contents ▽</label>
<div class="hiddendiv">
<div class="mt-4">
{{ .Page.TableOfContents }}
</div>
</div>
</div>
{{ end }}
<div class="ddmenu">
<input id="toggly" type="checkbox">
<label for="toggly" class="sidebar-title mb-1" tabindex="1">▒▒ has topics ▽</label>
<div class="hiddendiv">
<ul class="mt-4">
{{ range .Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
{{ end }}
{{ define "main" }}
<div class="content-text">{{ .Content }}</div>
{{ end }}

View File

@ -0,0 +1,6 @@
{{ define "main" }}
<article>
<div class="font-vg5000"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
<div class="font-playfair">{{ .Content }}</div>
</article>
{{ end }}

View File

@ -0,0 +1,42 @@
{{ $text_link := .Text }}
{{ if strings.HasPrefix .Destination "bib:" }}
{{ $destination := (substr .Destination 4) }}
{{ if index $.Page.Site.Data.books.piratecarecollection $destination }}
{{ $b := index $.Page.Site.Data.books.piratecarecollection $destination }}
{{ if not $text_link }}
<span>{{ delimit $b.authors ", " " & " }}{{ with $b.pubdate }}, {{ substr . 0 4}}{{ end }}.<a href="/library/BROWSE_LIBRARY.html#/book/{{ $destination }}"{{ with $b.title}} title="{{ . }}"{{ end }} target="_blank"><i>{{ $b.title }}</i></a>. {{ with $b.publisher }}{{ . }}.{{ end }}</span>
{{ else }}
<a href="/library/BROWSE_LIBRARY.html#/book/{{ $destination }}"{{ with $b.title}} title="{{ . }}"{{ end }} target="_blank">{{ $text_link }}</a>
{{ end }}
{{ else }}
<a href="/library/BROWSE_LIBRARY.html#/book/{{ $destination }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ $text_link }}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">bib:{{ $destination }} not found</span></a>
{{ end }}
{{ else if strings.HasPrefix .Destination "session:" }}
{{ $s_destination := (substr .Destination 8) }}
{{ if $.Page.Site.GetPage $s_destination }}
{{ $session := $.Page.Site.GetPage $s_destination }}
{{ if not $text_link }}
<a href="/session/{{ $s_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}"{{ with $session.Title}} title="{{ $session.Title }}"{{ end }}>{{ $session.Title }}</a>
{{ else }}
<a href="/session/{{ $s_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ $text_link }}</a>
{{ end }}
{{ else }}
<a href="/session/{{ $s_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $text_link }}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">session:{{ $s_destination }} not found</span></a>
{{ end }}
{{ else if strings.HasPrefix .Destination "topic:" }}
{{ $t_destination := (substr .Destination 6) }}
{{ if $.Page.Site.GetPage $t_destination }}
{{ $topic := $.Page.Site.GetPage $t_destination }}
{{ if not $text_link }}
<a href="/topic/{{ $t_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}"{{ with $topic.Title}} title="{{ $topic.Title }}"{{ end }}>{{ $topic.Title }}</a>
{{ else }}
<a href="/topic/{{ $t_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ $text_link }}</a>
{{ end }}
{{ else }}
<a href="/topic/{{ $t_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $text_link }}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">topic:{{ $t_destination }} not found</span></a>
{{ end }}
{{ else if findRE "^.*static" .Destination }}
<img src="{{ (replaceRE "^.*static" "" .Destination ) | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />
{{ else }}
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />
{{ end }}

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
{{- $filePath := .File -}}
{{- $gitUrl := .Site.Params.giturl -}}
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{- partial "head.html" . -}}
{{ partialCached "css.html" . }}
<body class="mx-4">
{{ with .Site.Params.edit }}
<div class="flex justify-between sticky top-0 static border-b-8 z-10 border-CoconutCream bg-AuChico px-1 pt-2">
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ $filePath }}">edit_this</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $filePath.Dir }}">{{ $filePath.Dir }}add_new</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content">add_new</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
</div>
{{ end }}
{{- partial "header.html" . -}}
<main class="lg:flex mb-4 pt-2 justify-between md:flex-row">
<aside class="lg:w-2/5 pr-4 pt-16 lg:sticky lg:top-0 lg:static h-full mb-6 md:w-full">
{{- block "sidebar" . }}{{- end }}
</aside>
<article class="lg:w-3/5 pt-32 md:w-full">
{{- block "main" . }}{{- end }}
</article>
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,22 @@
{{ define "sidebar" }}
{{$currentNode := . }}
<div class="leading-none mb-12">
<span class="title-pretext">download ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
</div>
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
<div class="ddmenu">
<input id="toggly-toc" type="checkbox" >
<label for="toggly-toc" class="sidebar-title" tabindex="1">▒▒ table of contents ▽</label>
<div class="hiddendiv">
<div class="mt-4">
{{ .Page.TableOfContents }}
</div>
</div>
</div>
{{ end }}
{{ end }}
{{ define "main" }}
<div class="content-text">{{ .Content }}</div>
{{ end }}

View File

@ -0,0 +1,6 @@
{{ define "main" }}
<article>
<div class="font-vg5000"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
<div class="font-playfair">{{ .Content }}</div>
</article>
{{ end }}

View File

@ -0,0 +1 @@
{{ block "main" . }}{{ end }}

View File

@ -0,0 +1 @@
{{ define "main" }}SECTIONS=[{{ range .Site.Sections }}{"section": "{{ trim .File.Dir "/" }}", "items": [{{ range .Pages }}"{{ .File.BaseFileName }}", {{ end }}]}, {{ end }}];{{ end }}

View File

@ -0,0 +1,28 @@
{{ if (or (eq hugo.Environment "gitea") (eq hugo.Environment "preview") ) }}
<link rel="stylesheet" href="/css/styles.css">
{{ else if .Site.IsServer }}
{{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
{{ else }}
{{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
{{ $flist := newScratch }}
{{ $flist.Set "initial" "nop" }}
{{ range (readDir "public/css") }}
{{ $finfo := os.Stat (printf "%s%s" "public/css/" .Name) }}
{{ $flist.SetInMap "css_files" (printf "%s" $finfo.ModTime) .Name }}
{{ $flist.Set "initial" "yay" }}
{{ end }}
{{ $css := "nop" }}
{{ if eq ($flist.Get "initial") "yay" }}
{{ $css = (index (last 1 ( $flist.GetSortedMapValues "css_files" )) 0) }}
{{ end }}
{{ if in $css "css" }}
<link rel="stylesheet" href="{{ "/css/" }}{{ $css }}">
{{ else }}
{{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
{{ end }}
{{ end }}

View File

@ -0,0 +1,4 @@
<footer>
▒▒▒ ▒ <a href="https://creativecommons.org/licenses/by-sa/4.0/"></a> 2019-2020 <a href="mailto:info@pirate.care">Piratecare</a> ▒Markdown♻HTML ✈ <a href="https://gohugo.io/" rel="nofollow">Hugo</a> ▒Commits♻<a href="https://git-scm.com/">Git</a> 🐟 <a href="https://gitea.io/">Gitea</a> ▒▒ 🐟 ▒ Print &#9879 <a href="https://pagedjs.org">paged.js</a> ▒▒▒&nbsp🐙&nbsp ▒▒▒▒▒▒🏃 &nbsp▒▒☄▒▒▒▒ &nbsp&nbsp▒&nbsp⚡ &nbsp▒▒▒ &nbsp▒▒▒▒▒▒&nbsp▒▒▒▒🔍▒ &nbsp☠&nbsp▒&nbsp▒▒▒&nbsp▒▒▒▒▒▒▒▒▒▒ 🐟▒ ☄ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒ ▒ ▒ ▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒▒ ▲ ▒▒▒▒▒▒ ▒▒ ▒ ▒ ▒ ▒▒&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp▒&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒ ▒ ▒ ▒▒▒▒▒▒▒▒▒▒ ⚧ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ◎ ▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ♻ ▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 🏃 ▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒ ▒ ▒ ▒▒▒▒▒▒▒ 🌑 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp▒▒ ▒▒▒▒▒▒▒▒▒ ⚡ ▒▒▒▒▒▒▒▒Design 🖼 <a href="https://www.maddalenafragnito.com">Maddu</a> 🐈▒▒▒▒▒▒ ◎
</footer>

View File

@ -0,0 +1,29 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
{{ if .Description }}
<meta name="description" content="{{ .Description }}" />
{{ end }}
{{ if .Keywords }}
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
{{ end }}
{{ if .Params.Author }}
<meta name="author" content="{{ .Params.Author}}" />
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ hugo.Generator }}
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#996561">
<title>{{ block "title" . }}{{- .Title }} - {{ .Site.Title -}}{{ end }}</title>
</head>

View File

@ -0,0 +1,5 @@
<header class="flex justify-between bg-CoconutCream">
<a href="{{ .Site.Home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}" class="logo pt-3 cursor-pointer">machinelistening&nbsp&nbsp▒▒▒&nbsp🐙&nbsp&nbsp</a>
<a href="/library/BROWSE_LIBRARY.html" target="_blank" class="logo pt-3 cursor-pointer">library.</a>
</div>
</header>

View File

@ -0,0 +1,2 @@
<link href="/css/paged_interface.css" rel="stylesheet" type="text/css">
<script src="/js/paged.polyfill.js"></script>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{- partial "head.html" . -}}
{{- partial "pagedjs.html" . -}}
{{ partial "css.html" . }}
<body>
<article>
{{- block "main" . }}{{- end }}
</article>
</body>
</html>

View File

@ -0,0 +1,53 @@
{{ define "main" }}
<div class="frontpage">
<div class="pb-6"> <span class="title-pretext">syllabus ⦚ </span><span class="title-text">{{ .Site.Home.Title }}</span></div>
<div class="sidebar-title mb-1 pt-16 mb-4">▒▒ has topics ▽</div>
<ul class="mt-8">
{{ range .Site.Home.Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
{{ range .Site.Home.Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<div class="topic" id="{{ .File.LogicalName }}"><div class="runningTopic"><a href="#{{ .File.LogicalName }}"> topic ⦚ {{ .Title }}</a></div>
<div><span class="topic-pretext">topic ⦚ </span><span class="topic-text pt-6">{{ .Title }}</span></div>
<div class="sidebar-title mb-1 pt-16">▒▒ has sessions ▽</div>
<ul class="mt-4">
{{ range .Params.has_sessions }}
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
<div>{{ .Content }}</div>
{{ range .Params.has_sessions }}
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
{{ $session := . }}
<div class="topic" id="{{ .File.LogicalName }}"><div class="runningTopic"><a href="#{{ .File.LogicalName }}">session ⦚ {{ .Title }}</a></div>
<div><span class="topic-pretext">session ⦚ </span><span class="topic-text pt-6">{{ .Title }}</span></div>
<div class="sidebar-title mb-1 pt-16">▒▒ is in ▽</div>
<ul class="mt-4">
{{ range where $.Site.RegularPages ".Section" "topic" }}
{{ if in .Params.has_sessions $session.File.LogicalName }}
<li><a class="sidebar-list text-base" href="#{{ .File.LogicalName }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ else if in .Params.is_in $session.File.LogicalName }}
<li><a class="sidebar-list text-base" href="#{{ .File.LogicalName }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
<div class="pt-16">{{ .Content }} </div>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}

View File

@ -0,0 +1,7 @@
{{ define "main" }}
<div class="sidebar-title mb-1 pb-8">▒▒ all sessions:</div>
{{ range .Data.Pages }}
<div><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div>
{{ end }}
<div class="pb-8"></div>
{{ end }}

View File

@ -0,0 +1,40 @@
{{ define "sidebar" }}
<div class="leading-none mb-12">
<span class="title-pretext">session ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
</div>
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
<div class="ddmenu">
<input id="toggly-toc" type="checkbox" >
<label for="toggly-toc" class="sidebar-title" tabindex="1">▒▒ table of contents ▽</label>
<div class="hiddendiv">
<div class="mt-4">
{{ .Page.TableOfContents }}
</div>
</div>
</div>
{{ end }}
<div class="ddmenu">
<input id="toggly-isin" type="checkbox">
<label for="toggly-isin" class="sidebar-title mt-4 mb-1" tabindex="1">▒▒ is in ▽</label>
<div class="hiddendiv">
<ul class="mt-4">
{{ $currentSession := . }}
{{ range where $.Site.RegularPages ".Section" "topic" }}
{{ if in .Params.has_sessions $currentSession.File.LogicalName }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ else if in $currentSession.Params.is_in .File.LogicalName }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
{{ end }}
{{define "main" }}
<article>
<div class="content-text">{{ .Content }}</div>
</article>
{{ end }}

View File

@ -0,0 +1,7 @@
{{ define "main" }}
<div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div>
{{ range .Data.Pages }}
<div><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div>
{{ end }}
<div class="pb-8"></div>
{{ end }}

View File

@ -0,0 +1,55 @@
{{ define "sidebar" }}
{{ $currentNode := . }}
<div class="leading-none mb-12">
<span class="title-pretext">topic ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
</div>
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
<div class="ddmenu">
<input id="toggly-toc" type="checkbox" >
<label for="toggly-toc" class="sidebar-title" tabindex="1">▒▒ table of contents ▽</label>
<div class="hiddendiv">
<div class="mt-4">
{{ .Page.TableOfContents }}
</div>
</div>
</div>
{{ end }}
<div class="ddmenu">
<input id="toggly-sessions" type="checkbox">
<label for="toggly-sessions" class="sidebar-title mb-1" tabindex="1">▒▒ has sessions ▽</label>
<div class="hiddendiv">
<ul class="mt-4">
{{ range .Params.has_sessions }}
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
<div class="ddmenu">
<input id="toggly-isin" type="checkbox">
<label for="toggly-isin" class="sidebar-title mt-4 mb-1" tabindex="1">▒▒ is in ▽</label>
<div class="hiddendiv">
<ul class="mt-4">
<li><a class="sidebar-list text-base" href="{{ .Site.Home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ syllabus ⦚ {{ .Site.Home.Title }}</a></li>
</ul>
</div>
</div>
{{ end }}
{{define "main" }}
<article>
{{ if eq .Params.last_modified "top" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
<div class="content-text">{{ .Content }}</div>
{{ if eq .Params.last_modified "bottom" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
</article>
{{ end }}

1407
themes/machinelistening/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
{
"name": "hugo-theme-tailwindcss-starter",
"version": "0.1.1",
"description": "Starter files for a Hugo theme with Tailwindcss",
"main": "index.js",
"repository": "https://github.com/dirkolbrich/hugo-theme-tailwindcss-starter",
"author": "dirkolbrich <github@dirkolbrich.de>",
"license": "MIT",
"scripts": {
"start": "hugo --gc"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^2.0.6",
"autoprefixer": "^9.7.4",
"postcss": "^7.0.26",
"postcss-cli": "^7.1.0",
"postcss-import": "^12.0.1",
"tailwindcss": "^1.2.0"
},
"browserslist": [
"last 1 version",
"> 1%",
"maintained node versions",
"not dead"
]
}

View File

@ -0,0 +1,22 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Machinelistening"
license = "MIT"
licenselink = "https://www.gnu.org/licenses/gpl-3.0.en.html"
description = "The theme developed for the Machine Listening Syllabus (forked from Pirate Care)"
homepage = "https://pirate.care"
tags = ["syllabus"]
features = []
min_version = "0.41"
[author]
name = "maddalena fragnito & marcell mars"
homepage = "https://pirate.care"
# If porting an existing theme
[original]
name = "hugo-theme-tailwindcss-starter"
homepage = "https://github.com/dirkolbrich/hugo-theme-tailwindcss-starter"
repo = "https://github.com/dirkolbrich/hugo-theme-tailwindcss-starter"