Compare commits

..

No commits in common. "4ccf9395a6ae244dfc6cc4328ba4317a343bbfbb" and "506fa714a38a337135ebc75bc3cfa694becec458" have entirely different histories.

6 changed files with 39 additions and 40 deletions

View file

@ -70,12 +70,11 @@ p {
#main-nav ul { #main-nav ul {
padding: 0; padding: 0;
margin: 0; margin: 0 0 1em;
display: flex;
list-style: none;
} }
#main-nav li { #main-nav li {
display: inline-block;
margin-inline-end: 0.5em; margin-inline-end: 0.5em;
} }
@ -83,8 +82,7 @@ p {
font-family: sans-serif; font-family: sans-serif;
font-weight: bold; font-weight: bold;
font-size: 150%; font-size: 150%;
line-height: 1.3; margin-bottom: 0.25rem;
margin: 0;
} }
footer { footer {
@ -93,7 +91,6 @@ footer {
header h1 { header h1 {
margin: 0; margin: 0;
font-size: 2em;
} }
header { header {
@ -111,11 +108,11 @@ hr {
background: var(--overlay); background: var(--overlay);
} }
.chroma { pre code {
background: black; background: black;
border: 1px solid var(--overlay); border: 1px solid var(--overlay);
border-radius: 8px; border-radius: 8px;
padding: 1rem; padding: 1em;
display: block; display: block;
overflow-x: auto; overflow-x: auto;
} }

View file

@ -1 +0,0 @@
<pre class="chroma"><code class="language-{{ .Type }}" data-lang="{{ .Type }}">{{ (transform.HighlightCodeBlock .).Inner }}</code></pre>

View file

@ -1,14 +1,29 @@
<!doctype html> <!doctype html>
<html lang="{{ .Site.Language.LanguageCode }}"> <html lang="{{ .Site.Language.LanguageCode }}">
<head> <head>
{{ partial "head.html" . }} {{ range .AlternativeOutputFormats -}} {{ printf {{ partial "head.html" . }}
` <!-- this is here to make sure that if we can't load CSS the icons don't totally fuck up layout -->
<style>
.icon svg {
width: 1.25em;
height: 1.25em;
}
</style>
{{ range .AlternativeOutputFormats -}} {{ printf `
<link rel="%s" type="%s" href="%s" title="%s" /> <link rel="%s" type="%s" href="%s" title="%s" />
` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}}
</head> </head>
<body> <body>
<a href="#main" class="skip">Skip to content</a> <a href="#main" class="skip">Skip to content</a>
{{ partial "header.html" .Site }} <nav id="main-nav">
<div id="site-title">{{.Site.Title}}</div>
<ul>
{{ with .Site.Menus.main }} {{ range . }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }} {{ end }}
</ul>
</nav>
<main id="main">{{ block "main" . }}{{ end }}</main> <main id="main">{{ block "main" . }}{{ end }}</main>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</body> </body>

View file

@ -1,18 +1,16 @@
{{ define "main" }} {{ define "main" }}
<article> <header>
<header>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<time datetime="{{ .Lastmod }}" <time datetime="{{ .Lastmod }}">{{ .Lastmod.Format "January 2, 2006" }}</time>
>{{ .Lastmod.Format "January 2, 2006" }}</time </header>
> {{ if .Params.toc }}
</header> <aside id="toc">
{{ if .Params.toc }} <a class="skip" href="#post">Skip table of contents</a>
<aside id="toc"> <h2 id="toc-title">Contents</h2>
<a class="skip" href="#post">Skip table of contents</a> {{ .TableOfContents }}
<h2 id="toc-title">Contents</h2> </aside>
{{ .TableOfContents }} <a id="post"></a>
</aside> {{ end }}
<a id="post"></a> {{ .Content }}
{{ end }} {{ .Content }} {{ partial "tags.html" . }} {{ partial "tags.html" . }}
</article>
{{ end }} {{ end }}

View file

@ -1,10 +1,10 @@
<footer> <footer>
Made with <a href="https://gohugo.io">Hugo</a>. All content is licensed under Made with <a href="https://gohugo.io">Hugo</a>. All content is openly licensed
via
<a <a
href="http://creativecommons.org/licenses/by-sa/4.0/" href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank" target="_blank"
rel="license noopener noreferrer" rel="license noopener noreferrer"
>CC BY-SA 4.0</a
> >
CC BY-SA 4.0
</a>
</footer> </footer>

View file

@ -1,10 +0,0 @@
<header>
<p id="site-title">{{.Title}}</p>
<nav id="main-nav">
<ul>
{{ with .Menus.main }}{{ range . }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}{{ end }}
</ul>
</nav>
</header>