Compare commits

...

18 commits

Author SHA1 Message Date
4fe7592d9c new img and vid custom markdown links.. !publish!... 2022-01-11 15:23:08 +01:00
c491a6b0b0 resolved conflicts.. 2022-01-07 23:05:15 +01:00
9d5ecffd80 resolved conflicts.. 2022-01-07 23:04:51 +01:00
Sandpoints Edit Page
9ea23d6d5a sandpoints-ext - 2021-07-21 11:02:46.516418622 +0200 CEST m=+0.116227132 - editing via browser... 2021-07-21 11:02:46 +02:00
Sandpoints Edit Page
363de72cbb sandpoints-ext - 2021-07-10 20:40:37.864421108 +0200 CEST m=+0.147657859 - editing via browser... 2021-07-10 20:40:37 +02:00
Sandpoints Edit Page
a149eaa2ea sandpoints-ext - 2021-07-10 20:40:15.42152404 +0200 CEST m=+0.077736096 - editing via browser... 2021-07-10 20:40:15 +02:00
Sandpoints Edit Page
501a827e72 sandpoints-ext - 2021-07-10 20:38:25.877942067 +0200 CEST m=+0.159067326 - editing via browser... 2021-07-10 20:38:25 +02:00
Sandpoints Edit Page
036e8132f6 sandpoints-ext - 2021-07-10 20:33:44.536086215 +0200 CEST m=+0.165870540 - editing via browser... 2021-07-10 20:33:44 +02:00
Sandpoints Edit Page
01abb63d13 sandpoints-ext - 2021-07-10 20:31:32.697736018 +0200 CEST m=+0.051198850 - editing via browser... 2021-07-10 20:31:32 +02:00
Sandpoints Edit Page
1a4b8dd864 sandpoints-ext - 2021-07-10 20:30:18.206637571 +0200 CEST m=+0.050960452 - editing via browser... 2021-07-10 20:30:18 +02:00
Sandpoints Edit Page
92b63af3b3 sandpoints-ext - 2021-07-10 20:30:03.744560306 +0200 CEST m=+0.072706330 - editing via browser... 2021-07-10 20:30:03 +02:00
Sandpoints Edit Page
9efa19d7d0 sandpoints-ext - 2021-07-10 20:26:10.849213493 +0200 CEST m=+0.050427329 - editing via browser... 2021-07-10 20:26:10 +02:00
Sandpoints Edit Page
32ea5c1a02 sandpoints-ext - 2021-07-10 20:02:15.268375397 +0200 CEST m=+0.063586742 - editing via browser... 2021-07-10 20:02:15 +02:00
Sandpoints Edit Page
aa14cbbc0f sandpoints-ext - 2021-07-10 20:00:08.324066951 +0200 CEST m=+0.045343942 - editing via browser... 2021-07-10 20:00:08 +02:00
Sandpoints Edit Page
af996c55d6 sandpoints-ext - 2021-07-10 19:59:53.784906871 +0200 CEST m=+0.045610827 - editing via browser... 2021-07-10 19:59:53 +02:00
Sandpoints Edit Page
ebc8752c06 sandpoints-ext - 2021-07-10 19:59:13.664297878 +0200 CEST m=+0.186698706 - editing via browser... 2021-07-10 19:59:13 +02:00
Sandpoints Edit Page
fbe0aa366f sandpoints-ext - 2021-07-10 19:58:49.908740333 +0200 CEST m=+0.353990563 - editing via browser... 2021-07-10 19:58:49 +02:00
Sandpoints Edit Page
802cd00065 sandpoints-ext - 2021-07-03 02:24:29.560176332 +0200 CEST m=+0.056967575 - editing via browser... 2021-07-03 02:24:29 +02:00
23 changed files with 616 additions and 175 deletions

View file

@ -1,69 +1,88 @@
html, body {
position: relative;
width: 100%;
height: 100%;
position: relative;
width: 100%;
height: 100%;
}
body {
color: #333;
margin: 0;
padding: 8px;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
color: #333;
margin: 0;
padding: 8px;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
a {
color: rgb(0,100,200);
text-decoration: none;
color: rgb(0,100,200);
text-decoration: none;
}
a:hover {
text-decoration: underline;
text-decoration: underline;
}
a:visited {
color: rgb(0,80,160);
color: rgb(0,80,160);
}
input, button, select, textarea {
font-family: inherit;
font-size: inherit;
-webkit-padding: 0.4em 0;
padding: 0.4em;
margin: 0 0 0.5em 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 2px;
font-family: inherit;
font-size: inherit;
-webkit-padding: 0.4em 0;
padding: 0.4em;
margin: 0 0 0.5em 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 2px;
}
input:disabled {
color: #ccc;
color: #ccc;
}
button {
color: #333;
background-color: #f4f4f4;
outline: none;
color: #333;
background-color: #f4f4f463;
outline: none;
padding: 0.1rem 0.1rem;
margin-left: 0.3rem;
}
button:disabled {
color: #999;
color: #999;
}
button:disabled:hover {
cursor: default;
}
button:not(:disabled):active {
background-color: #ddd;
background-color: #ddd;
}
button:focus {
border-color: #666;
border-color: #666;
}
button:hover, .newtierbutton:hover {
cursor: pointer;
}
/* custom part */
form {
.newtierbutton {
color: #000;
background-color: #dddddd;
padding: 0.2em 0.4em;
grid-column: 2/3;
margin-right: 0.2rem;
}
.formgrid {
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 1rem;
margin-top: 1rem;
}
#sandpoints {
@ -72,12 +91,27 @@ form {
margin-top: 1rem;
}
label {
label, .filepath {
grid-column: 1/2;
text-transform: capitalize;
align-self: center
}
input, button, textarea, .selecttier {
.labelcontent {
align-self: auto;
}
.labeloffline {
margin-top: -0.4rem;
}
input[readonly] {
color: #000000b3;
background: #00000012;
border: 0px;
}
input, button, textarea, .selecttier, .relpath {
grid-column: 2/3;
}
@ -90,6 +124,137 @@ textarea {
border: 0px;
padding: 0px;
margin: 0px;
width: 50%;
font-weight: bold;
}
.hasinput:focus {
outline: none;
}
.tierline {
display: flex;
align-items: baseline;
}
.tiertitle {
font-style: italic;
}
.buttons {
display: flex;
margin-left: auto;
padding-left: 0.2rem;
}
select {
align-self: start;
border: 0;
padding: 0.1rem;
}
.selecttier {
margin-top: 0.5rem;
}
.buttons button {
border: solid #999 1px;
padding: 0;
padding-left: 0.1rem;
padding-right: 0.1rem;
margin: 1px;
}
.filepath {
font-size: large;
font-style: italic;
margin-bottom: 1rem;
}
.relpath {
font-size: large;
font-weight: bold;
}
.tierbox, #selecthas {
margin-top: 0.5rem;
}
.fmHidden {
display: none;
}
.fmShown {
display: block;
}
.fmMetaTitle {
margin-bottom: 0.3rem;
text-transform: capitalize;
display: block;
text-align: right;
font-size: smaller;
padding-top: 0.2rem;
}
.fmMeta {
border-bottom: 2px #0000001a solid;
border-right: 1px #0000001a solid;
padding-bottom: 1rem;
margin-bottom: 0.5rem;
background: #ffffff1c;
padding-right: 0.2rem;
}
.fmItem {
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 1rem;
}
.fmCollapse, .fmExpand {
padding-top: 0.2rem;
margin-top: 0.5rem;
padding-bottom: 0.5rem;
}
.fmExpand:hover, .fmCollapse:hover {
cursor: pointer;
}
.fmCollapse::before {
margin-right: 0.3rem;
content: "⇲";
}
.fmExpand::before {
margin-right: 0.3rem;
content: "⇱";
}
#fmicon, #frontmatter, input.hasinput {
background-color: #ffccbc;
padding-right: 0.3rem;
padding-left: 0.3rem;
padding-bottom: 0.3rem;
}
.newtiers {
display: none;
}
#newtierstitle {
margin-right: 0.4rem;
display: block;
}
.newtiersbar {
padding-bottom: 0.4rem;
padding-top: 0.4rem;
margin-left: auto;
display: flex;
border-bottom: 2px #0000001a solid;
border-right: 1px #0000001a solid;
justify-content: flex-end;
align-items: center;
background: #00000008;
}

View file

@ -90,18 +90,18 @@ th:not([align]) {
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.svg#VollkornSC")
format("svg");
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
@ -114,17 +114,17 @@ th:not([align]) {
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.svg#VollkornSC")
format("svg");
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
@ -137,17 +137,17 @@ th:not([align]) {
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.svg#VollkornSC")
format("svg");
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
@ -160,17 +160,17 @@ th:not([align]) {
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.svg#VollkornSC")
format("svg");
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
@ -183,18 +183,18 @@ th:not([align]) {
src: url("../fonts/vollkorn-v12-latin-ext_latin-500italic.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.svg#Vollkorn")
format("svg");
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
@ -207,18 +207,18 @@ th:not([align]) {
src: url("../fonts/vollkorn-v12-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.svg#Vollkorn")
format("svg");
url("../fonts/vollkorn-v12-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
@ -231,17 +231,17 @@ th:not([align]) {
src: url("../fonts/vollkorn-v12-latin-ext_latin-500.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-500.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-v12-latin-ext_latin-500.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500.svg#Vollkorn")
format("svg");
url("../fonts/vollkorn-v12-latin-ext_latin-500.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-v12-latin-ext_latin-500.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
@ -254,17 +254,17 @@ th:not([align]) {
src: url("../fonts/vollkorn-v12-latin-ext_latin-italic.eot");
/* IE9 Compat Modes */
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.ttf") format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.svg#Vollkorn")
format("svg");
url("../fonts/vollkorn-v12-latin-ext_latin-italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.ttf") format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
@ -277,18 +277,18 @@ th:not([align]) {
src: url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local("Great Vibes"), local("GreatVibes-Regular"),
url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.svg#GreatVibes")
format("svg");
url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.svg#GreatVibes")
format("svg");
/* Legacy iOS */
}
@ -575,9 +575,9 @@ img {
.rightcolumn {
/* display: grid;
grid-column: 2;
grid-template-columns: auto 1fr;
grid-auto-rows: max-content; */
grid-column: 2;
grid-template-columns: auto 1fr;
grid-auto-rows: max-content; */
padding-left: 0.5rem;
}
@ -592,6 +592,7 @@ img {
.hasauthors {
font-size: 1.6rem !important;
display: flex;
}
.hassup {
@ -669,7 +670,7 @@ h6 {
padding-top: 1.2rem;
padding-bottom: 1.2rem;
background-color: rgba(0, 0, 0, 0.05);
max-width: 70ch;
max-width: 45ch;
}
.authors {
@ -775,7 +776,7 @@ h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
counter(h6) ". ";
counter(h6) ". ";
}
h2.nocount:before,
@ -834,9 +835,9 @@ details {
}
/* .glossline {
border-bottom: lightgray solid 1px;
border-top: lightgray solid 1px;
} */
border-bottom: lightgray solid 1px;
border-top: lightgray solid 1px;
} */
.glosswords {
display: inline-block;

View file

@ -63,12 +63,20 @@ function editPage(repoJsId) {
}
el.src = `${relPath}js/repo/${repoJsId}.js`
document.body.appendChild(el)
document.location.href = `${relPath}edit/index.html#${repoJsId}`
document.location.href = `${relPath}edit/index.html?edit=${repoJsId}`
ev}
window.addEventListener("keyup", (e)=> {
if (e.key == "e" && location.protocol == "file:") {
editPage(sandpointsPageId)
} else if (e.key == "E" && location.protocol == "file:") {
let preview = document.querySelector("#preview");
if (preview.style.display == "flex") {
preview.style.display = "none";
} else {
preview.style.display = "flex";
}
console.log("preview: ", preview);
}
})
@ -80,7 +88,6 @@ window.addEventListener("DOMContentLoaded", (e) => {
}
document.querySelectorAll('.triadlink').forEach((i) => {
console.log(i)
i.addEventListener("click", (ev) => {
if (ev.ctrlKey) {
ev.preventDefault()

View file

@ -16,5 +16,18 @@
"annex": "annexes",
"author": "authors",
"editor": "editors",
"contributor": "contributors"
"contributor": "contributors",
"entry": "entries",
"pin": "pins",
"ship": "ships",
"deck": "decks",
"cabin": "cabins",
"compartment": "compartments",
"house": "houses",
"floor": "floors",
"room": "rooms",
"section": "sections",
"spectre": "spectres",
"reflection": "reflections",
"highlight": "highlights"
}

View file

@ -1,4 +1,4 @@
---
title: "meta"
outputs: js
---
+++
title = "meta"
outputs = "js"
+++

View file

@ -5,7 +5,17 @@
{{ $_.Add "triads" $k }}
{{- end -}}
{{- if strings.HasPrefix .Destination "bib:" -}}
{{- if strings.HasPrefix .Destination "img:" -}}
{{- $img_params := (substr .Destination 4) -}}
{{- $img_src := index (split $img_params " ") 0 -}}
{{- $img_attr := index (split $img_params $img_src) 1 -}}
<img src="{{ $img_src }}" {{ $img_attr | safeHTMLAttr }} />
{{- else if strings.HasPrefix .Destination "vid:" -}}
{{- $vid_params := (substr .Destination 4) -}}
{{- $vid_src := index (split $vid_params " ") 0 -}}
{{- $vid_attr := index (split $vid_params $vid_src) 1 -}}
<video controls src="{{ $vid_src }}" {{ $vid_attr | safeHTMLAttr }}></video>
{{- else if strings.HasPrefix .Destination "bib:" -}}
{{- $destination := (substr .Destination 4) -}}
{{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}}
{{- if index $.Page.Site.Data.books.catalog $destination -}}
@ -17,12 +27,12 @@
{{ end }}
{{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }}
{{- if not $text_link -}}
<span>{{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank"><span class="sup">bib</span><i>{{- $b.title -}}</i></a>. {{- with $b.publisher -}}{{- . -}}.{{- end -}}</span>
{{- else -}}
<span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a>
<span>{{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}},&nbsp;{{- substr . 0 4}}{{- end -}}.&nbsp;<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank"><span class="sup">bib</span><i>{{- $b.title -}}</i></a>.&nbsp;{{- with $b.publisher -}}{{- . -}}.{{- end -}}</span>
{{- else -}}
<span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a>
{{- end -}}
{{- else -}}
<a href="{{- $c_prefix | safeURL -}}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>
<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span>bib:{{- $destination -}} not found</span></a>
{{- end -}}
{{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}}
{{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}}

View file

@ -2,12 +2,12 @@
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<head>
{{- partialCached "head.html" . -}}
{{- partial "head.html" . -}}
<title>{{- .Title }} - {{ .Site.Title -}}</title>
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
</head>
<body>
{{- block "singlebody" . }}{{- end }}
{{- block "singlebody" . }}{{- end -}}
{{- partialCached "footer.html" . -}}
</body>
</html>

View file

@ -11,7 +11,7 @@
{{ if in $sections $k }}
{{ $tiers = (slice) }}
{{ range where $.Site.RegularPages "Section" $k }}
{{ $tiers = $tiers | append .File.LogicalName }}
{{ $tiers = $tiers | append (merge (dict "file" .File.LogicalName) (dict "title" .Title)) }}
{{ end }}
{{ $metasp = merge $metasp (dict $v (merge (dict "singular" $k) (dict "tiers" $tiers))) }}
{{ end }}

View file

@ -11,10 +11,21 @@
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
{{ end }}
{{ if .Params.Author }}
<meta name="author" content="{{ .Params.Author }}" />
{{ if .Params.editors }}
{{ range .Params.editors }}
{{ $e := $.GetPage (printf "editor/%s" .) }}
<meta name="editor" content="{{ $e.Title }}" />
{{ end }}
{{ end }}
{{ if .Params.authors }}
{{ range .Params.authors }}
{{ $e := $.GetPage (printf "author/%s" .) }}
<meta name="author" content="{{ $e.Title }}" />
{{ end }}
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}

View file

@ -36,6 +36,16 @@
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/PUBLISH.trigger.md">PUBLISH</a>
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}"> ? </a>
</div>
{{ else }}
{{ $editPage := $.Site.GetPage "/edit" }}
<div class="headiter" id="preview">
<a class="edit-button" href="{{ $editPage.RelPermalink }}index.html?edit={{ .File.UniqueID }}">EDIT_THIS</a>
{{ with $scratch.core }}<a class="edit-button" href="{{ $editPage.RelPermalink }}index.html?new={{ index . 0 }}">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ with $scratch.mantle }}<a class="edit-button" href="{{ $editPage.RelPermalink }}index.html?new={{ index . 0 }}">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ with $scratch.crust }}<a class="edit-button" href="{{ $editPage.RelPermalink }}index.html?new={{ index . 0 }}">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ if not $scratch.core }}<a class="edit-button" href="{{ $editPage.RelPermalink }}index.html?new={{ $currentDir }}">ADD_{{ substr $currentDir 0 -1 | upper }}</a>{{ end }}
</div>
</div>
{{ end }}
<div class="header">

View file

@ -8,6 +8,8 @@
{{ $currentFile := (printf "/%s" .File) }}
{{ $scratch := $s.Get $currentFile }}
{{ $longestTitle := "" }}
<div id="ph-{{ .File.UniqueID }}" class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}</span>{{ .Title }}</div>
<div class="grid">
@ -64,7 +66,13 @@
<div class="{{ $scratch.child_depth }} crustoc">
<a class="toc" href="#ph-{{ .File.UniqueID }}"><span><span class="back">{{ .Title }} {{with $authors}}({{ $authors }}){{ end }}</span></span></a>
</div>
{{ if gt (len .Title) (len $longestTitle) }}
{{ $longestTitle = .Title }}
{{ end }}
{{ end }}
<div class="{{ $scratch.child_depth }} crustoc longesttitle">
<a class="toc" href="javascript:;"><span><span class="back">{{ $longestTitle }}.....</span></span></a>
</div>
</div></div>
{{ end }}

View file

@ -9,6 +9,8 @@
{{ $scratch := $s.Get $currentFile }}
{{ $sandnamePlural := (slice) }}
{{ $sandnameSingular := "" }}
{{ $mentionLink := "" }}
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
@ -31,12 +33,17 @@
{{ $mentions := intersect $paramsKeys $sandnamePlural }}
{{ range $mention := $mentions }}
{{ range $k, $m := index $currentNode.Params $mention }}
{{ $mentionLink := printf "/%s/%s" (substr $mention 0 -1) $m }}
{{ range $k, $v := $.Site.Data.sandpointsnamegraph }}
{{ if eq $v $mention }}
{{ $mentionLink = printf "/%s/%s" $k $m }}
{{ $sandnameSingular = $k }}
{{ end }}
{{ end }}
{{- with $.GetPage $mentionLink -}}
{{- with not $k -}}
{{ $closeDivs = true }}
<div class="has hasauthors">
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ substr $mention 0 -1 }}{{ end }}{{ end }}</div>
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ $sandnameSingular }}{{ end }}{{ end }}</div>
<div class="afterhas">
{{- end -}}
<div class="crust">
@ -44,8 +51,8 @@
</div>
{{- end -}}
{{ end }}
{{- with $closeDivs -}}</div></div>{{ end }}
{{ end }}
{{- with $closeDivs -}}</div></div>{{ end }}
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
<div class="has hasmentionedin">
@ -92,7 +99,7 @@
{{ with .Page.Params.abstract }}<div class="abstract"><span class="supt">abstract</span>{{ . | $.Page.RenderString | htmlUnescape | safeHTML }}</div>{{ end }}
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}<div class="keywords"><span class="sup">keywords</span>{{- $v -}}{{- else -}},&nbsp;{{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}}
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}<div class="keywords"><span class="sup">keywords</span><a href="/keywords/{{ urlize $v }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{- $v -}}</a>{{- else -}},&nbsp;<a href="/keywords/{{ urlize $v }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{- $v -}}</a>{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}}
{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\", \"relpermalink\": \"%s\" }" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink | resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }}
{{ $dummy := $var.Permalink }}

View file

@ -2,7 +2,7 @@
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{- else -}}en-us{{- end -}}">
<head>
{{- partialCached "head.html" . -}}
{{- partial "head.html" . -}}
{{- partial "pagedjs.html" . -}}
</head>
<body>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<head>
{{- partialCached "head.html" . -}}
<title>{{- .Title }} - {{ .Site.Title -}}</title>
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
</head>
<body>
{{- block "keywords" . -}}{{- end -}}
{{- partialCached "footer.html" . -}}
</body>
</html>

View file

@ -0,0 +1,16 @@
{{ define "keywords" }}
{{ $p := split (trim .RelPermalink "/") "/" }}
{{ if eq (len $p) 1 }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>All</div>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
{{ range $key, $value := $taxonomy }}
<span> <a href="/{{ index $p 0 }}/{{ $key }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $key }}</a>({{ len (index $.Site.Taxonomies.keywords $key) }})</span>
{{ end }}
{{ end }}
{{ else }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>{{ index $p 1 }}</div>
{{ range .Pages }}
<li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}

View file

@ -200,7 +200,8 @@
bottom: 0
}
.crustoc::after {
a.toc::before {
direction: rtl;
content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
line-height: 0;
height: 1px;
@ -233,4 +234,9 @@
ol[data-split-from] {
padding-left: 0.5rem;
}
.longesttitle {
visibility: hidden;
cursor: default;
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View file

@ -0,0 +1,145 @@
<!doctype html>
<html lang="en-us">
<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">
<html class="no-js" lang="">
<style>
@font-face {
font-family: "Great Vibes";
font-style: normal;
font-weight: 400;
src: url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local("Great Vibes"), local("GreatVibes-Regular"),
url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("great-vibes-v7-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.svg#GreatVibes")
format("svg");
/* Legacy iOS */
}
.content {
display: flex;
justify-content: center;
margin-top: 3rem;
}
.sandpointslogosize {
font-size: 15rem;
}
.sandpointlogo {
border-radius: 50%;
border: 0.3em solid red;
display: inline-flex;
font-family: "Great Vibes", cursive;
font-size: 1.2em;
font-weight: bold;
color: white;
background-color: red;
position: relative;
padding-left: 1em;
padding-right: 0.2em;
padding-bottom: 1.2em;
max-width: 0em;
max-height: 0em;
}
.sandpointF {
position: absolute;
font-size: 1.2em;
margin-top: -0.2em;
margin-left: -0.44em;
}
.sandpointN {
position: absolute;
font-size: 0.9em;
margin-top: 0.2em;
color: red;
margin-left: -0.45em;
}
.sandpointC {
position: absolute;
font-size: 1em;
margin-left: -0.4em;
margin-top: -0.04em;
padding-bottom: 2;
}
@media print {
.sandpointlogo {
border-radius: 50%;
border: 0.3em solid red;
display: inline-flex;
font-family: "Great Vibes", cursive;
font-size: 1.2em;
font-weight: bold;
color: white;
background-color: red;
position: relative;
padding-left: 1em;
padding-right: 0.2em;
padding-bottom: 1.2em;
max-width: 0em;
max-height: 0em;
}
.sandpointF {
position: absolute;
font-size: 1.2em;
margin-top: -0.2em;
margin-left: -0.44em;
}
.sandpointN {
position: absolute;
font-size: 0.9em;
margin-top: 0.2em;
color: red;
margin-left: -0.45em;
}
.sandpointC {
position: absolute;
font-size: 1em;
margin-left: -0.4em;
margin-top: -0.04em;
padding-bottom: 2;
}
.content {
display: flex;
justify-content: center;
align-items: center;
}
.sandpointslogosize {
font-size: 15rem;
}
}
</style>
</head>
<body>
<div class="content">
<div class="sandpointslogosize">
<div class="sandpointlogo">
<span class="sandpointF">ß</span>
<span class="sandpointN"></span>
<span class="sandpointC">:</span>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,2 +1,2 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210415120027-a51ae25ec747
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210414231020-1f34c9019bc1
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20220110234038-26c20737d668
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210825011616-e019d8a4d186

View file

@ -2,8 +2,7 @@
has_topics = ["media.md", "migration.md", "governance.md"]
title = "Summer School 2022 - Solidarity, Refuge, Sanctuary: Critical, aesthetic and technological practices in migration research"
+++
# Summer School 2022
# Summer School 2023
This is the first sentence of our recorder session. And this is the second sentence.

View file

@ -1,13 +1,44 @@
+++
title = "Migration"
has_sessions = ["firstsession.md"]
title = "Migration"
+++
# Introduction to Sandpoints
# The main header of the Migration topic
This is experimental publishing platform **Sandpoints**.
Here we are adding some text here...
# Sandpoints' structure
![](bib:92b86f5b-335a-47da-82a5-339b015c3139)
As already demonstrated Sandpoints is developed and accessible as a web site. On top of that, Sandpoints, at any given moment, allows for printing all of its content into a well designed PDF publication. The PDF publication prints out _Table of Contents_ with precise pagination numbers for every section and subsection.
That's one of the reasons why Sandpoints introduces triadic tiers structure for its content. The header of this page, once rendered against Sandpoints theme, says:
**ship/Sandpoints**
> This is not a ship.
Remember?
## Triadic tiers: [ship::deck::cabin]
This is not a ship. Ship has decks. Decks has cabins. This is a poetic way to introduce one of the ways to develop Sandpoints. You launch **Sandpoints ship**. Your ship has decks. Decks has cabins. The _Table of Contents_ in Sandpoints' **PDF** will always know what's the page number of any of your decks or cabins.
# Markdown
Sandpoints accepts [Markdown](https://en.wikipedia.org/wiki/Markdown). A plain text formatting syntax created by Aaron Swartz and John Gruber in 2004. It was designed with an idea that formatting could stay plain text, human readable, but with enough of intented instructions and structure from the author that any post-processing tools of interpratation can make it look good.
Let me quote the authors:
> Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).
And **emphasize**, pun intended, that simple rules allow for making text _italic_ or lists with its points:
- surrounding a word with two asterisks makes the word **emphasized**
- surrounding a word with to underscores makes the word _italic_
- blockquote shoudl start with a character ">" (check out the quote by the authors few lines above)
- starting the line with a character "-", just like this line as a fourth in a row, will make the line a bullet points
As one can see it already looks well structured but after I submit it in a second this text will get a look and feel of a Sandpoints default theme. Let's see!
Many times you want to use the bibliographic reference inside of some text using some nice ![snippet as a link](bib:92b86f5b-335a-47da-82a5-339b015c3139).
[^me]: It doesn't matter who's **me** in this context. But it was a nice opportunity to show the syntax for footnotes. This is a footnote.