refactor as hugo site

This commit is contained in:
xenofem 2020-05-29 16:58:33 -04:00
parent 89736633b5
commit 1e20792a0d
37 changed files with 474 additions and 409 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="stylesheet" href="/css/base.css">
<link rel="icon" type="image/png" href="/icons/icon-192.png">
{{ block "styles" . }}{{ end }}
</head>
<body>
{{ block "main" . }}{{ end }}
</body>
</html>

37
layouts/hypno/single.html Normal file
View file

@ -0,0 +1,37 @@
{{ define "title" }}
{{ .Title }} - xenoscience
{{ end }}
{{ define "styles" }}
<style>
#controls {
position: absolute;
bottom: 10px;
left: 10px;
}
#controls svg {
width: 40px;
height: 40px;
}
#controls svg path {
stroke: #c00;
}
#controls a:hover svg path {
stroke: red;
}
#controls a {
text-decoration: none;
}
</style>
{{ range .Resources.Match "**.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}
{{ define "main" }}
{{ .Content }}
<div id="controls"><a id="back" href="..">{{ partial "back.svg" . }}</a> <a id="reload" href=".">{{ partial "reload.svg" . }}</a></div>
{{ range .Resources.Match "**.js" }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
{{ end }}

29
layouts/index.html Normal file
View file

@ -0,0 +1,29 @@
{{ define "styles" }}
<style>
#footer {
margin-top: 3rem;
}
#footer svg {
width: 40px;
height: 40px;
}
#footer h4 {
margin: 2px;
}
</style>
{{ end }}
{{ define "main" }}
<div id="header">
<h1>mindjack</h1>
</div>
<h2><a href="follow/">follow</a></h2>
<h2><a href="colors/">colors</a></h2>
<h2><a href="loading/">loading</a></h2>
<div id="footer">
<h4>a project by <a href="https://xeno.science">xenofem</a></h4>
<h4><a href="https://xeno.science">{{ partial "xeno.svg" . }}</a></h4>
<h4><a href="https://git.xeno.science/xenofem/mindjack">source</a></h4>
</div>
{{ end }}

View file

@ -0,0 +1 @@
<a class="back" href=".."><img src="/back.svg"></a>

15
layouts/partials/back.svg Normal file
View file

@ -0,0 +1,15 @@
<svg height='245.918pt' version='1.1' viewBox='56.6209 54.0603 165.618 245.918' width='165.618pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<g id='page1'>
<g transform='matrix(0.996264 0 0 0.996264 113.909 191.358)'>
<path d='M 0 100.375C 55.4356 100.375 100.375 55.4356 100.375 0C 100.375 -55.4356 55.4356 -100.375 3.34316e-14 -100.375' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 113.909 191.358)'>
<path d='M 0 -100.375L -50.1875 -100.375' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 113.909 191.358)'>
<path d='M -50.1875 -100.375L -20.075 -130.487' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 113.909 191.358)'>
<path d='M -50.1875 -100.375L -20.075 -70.2625' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g></g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -0,0 +1,5 @@
<div id="footer">
<hr>
<h6>xenofem &langle;xenoatxenodotscience&rangle;</h6>
<h6><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a></h6>
</div>

View file

@ -0,0 +1,6 @@
<svg height='100.375pt' version='1.1' viewBox='56.6209 54.0603 75.2808 100.375' width='75.2808pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<g id='page1'>
<g transform='matrix(0.996264 0 0 0.996264 56.4094 103.858)'>
<path d='M 0 50.1875L 0 -50.1875L 75.2812 0L 0 50.1875Z' fill='#ff0000'/>
</g></g>
</svg>

After

Width:  |  Height:  |  Size: 344 B

View file

@ -0,0 +1,12 @@
<svg height='245.918pt' version='1.1' viewBox='56.6209 54.0603 215.806 245.918' width='215.806pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<g id='page1'>
<g transform='matrix(0.996264 0 0 0.996264 163.909 191.358)'>
<path d='M 0 -100.375C -55.4356 -100.375 -100.375 -55.4356 -100.375 -0C -100.375 55.4356 -55.4356 100.375 0 100.375C 55.4356 100.375 100.375 55.4356 100.375 0C 100.375 -43.3739 72.864 -80.3222 34.3396 -94.3473' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 163.909 191.358)'>
<path d='M 0 -100.375L -30.1125 -130.487' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 163.909 191.358)'>
<path d='M 0 -100.375L -30.1125 -70.2625' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='15.0562'/>
</g></g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

27
layouts/partials/xeno.svg Normal file
View file

@ -0,0 +1,27 @@
<svg height='525.965pt' version='1.1' viewBox='56.6209 54.0603 525.965 525.965' width='525.965pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<g id='page1'>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M 162.607 0C 162.607 -89.8056 89.8056 -162.607 0 -162.607C -89.8056 -162.608 -162.607 -89.8056 -162.607 -0C -162.607 89.8056 -89.8056 162.607 0 162.607C 89.8056 162.607 162.607 89.8056 162.607 0Z' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M 252.945 0C 252.945 -139.698 139.698 -252.945 0 -252.945C -139.698 -252.945 -252.945 -139.698 -252.945 -0C -252.945 139.698 -139.698 252.945 0 252.945C 139.698 252.945 252.945 139.698 252.945 0Z' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M -1.32758e-14 72.27L 120.048 -135.66' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M 160.702 -159.134C 160.702 -174.102 148.569 -186.235 133.601 -186.235C 118.634 -186.235 106.5 -174.102 106.5 -159.134C 106.5 -144.167 118.634 -132.033 133.601 -132.033C 148.569 -132.033 160.702 -144.167 160.702 -159.134Z' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M 62.5877 -36.135L -177.509 -36.135' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M -218.165 -59.6054C -231.128 -52.1216 -235.569 -35.5467 -228.085 -22.5844C -220.601 -9.62205 -204.027 -5.18083 -191.064 -12.6646C -178.102 -20.1484 -173.661 -36.7233 -181.144 -49.6856C -188.628 -62.648 -205.203 -67.0892 -218.165 -59.6054Z' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M -62.5877 -36.135L 57.4607 171.795' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g>
<g transform='matrix(0.996264 0 0 0.996264 318.409 315.858)'>
<path d='M 57.4629 218.739C 70.4253 226.223 87.0001 221.782 94.4839 208.82C 101.968 195.857 97.5265 179.283 84.5642 171.799C 71.6019 164.315 55.027 168.756 47.5432 181.718C 40.0594 194.681 44.5006 211.256 57.4629 218.739Z' fill='none' stroke='#ff0000' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10.0375' stroke-width='20.075'/>
</g></g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -0,0 +1 @@
{{ partial (.Get 0) . }}