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

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