refactor as hugo site
This commit is contained in:
parent
89736633b5
commit
1e20792a0d
37 changed files with 474 additions and 409 deletions
37
layouts/hypno/single.html
Normal file
37
layouts/hypno/single.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue