Compare commits
No commits in common. "4ccf9395a6ae244dfc6cc4328ba4317a343bbfbb" and "506fa714a38a337135ebc75bc3cfa694becec458" have entirely different histories.
4ccf9395a6
...
506fa714a3
6 changed files with 39 additions and 40 deletions
|
@ -70,12 +70,11 @@ p {
|
|||
|
||||
#main-nav ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
list-style: none;
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
#main-nav li {
|
||||
display: inline-block;
|
||||
margin-inline-end: 0.5em;
|
||||
}
|
||||
|
||||
|
@ -83,8 +82,7 @@ p {
|
|||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 150%;
|
||||
line-height: 1.3;
|
||||
margin: 0;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
|
@ -93,7 +91,6 @@ footer {
|
|||
|
||||
header h1 {
|
||||
margin: 0;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
header {
|
||||
|
@ -111,11 +108,11 @@ hr {
|
|||
background: var(--overlay);
|
||||
}
|
||||
|
||||
.chroma {
|
||||
pre code {
|
||||
background: black;
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
padding: 1em;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<pre class="chroma"><code class="language-{{ .Type }}" data-lang="{{ .Type }}">{{ (transform.HighlightCodeBlock .).Inner }}</code></pre>
|
|
@ -1,14 +1,29 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ .Site.Language.LanguageCode }}">
|
||||
<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" />
|
||||
` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}}
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<header>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<time datetime="{{ .Lastmod }}"
|
||||
>{{ .Lastmod.Format "January 2, 2006" }}</time
|
||||
>
|
||||
</header>
|
||||
<time datetime="{{ .Lastmod }}">{{ .Lastmod.Format "January 2, 2006" }}</time>
|
||||
</header>
|
||||
{{ if .Params.toc }}
|
||||
<aside id="toc">
|
||||
<a class="skip" href="#post">Skip table of contents</a>
|
||||
|
@ -13,6 +10,7 @@
|
|||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
<a id="post"></a>
|
||||
{{ end }} {{ .Content }} {{ partial "tags.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
{{ partial "tags.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<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
|
||||
href="http://creativecommons.org/licenses/by-sa/4.0/"
|
||||
target="_blank"
|
||||
rel="license noopener noreferrer"
|
||||
>CC BY-SA 4.0</a
|
||||
>
|
||||
CC BY-SA 4.0
|
||||
</a>
|
||||
</footer>
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Reference in a new issue