wires

summary refs log tree commit diff
path: root/layouts/_default
diff options
context:
space:
mode:
authorwires <wires@noreply.wires.systems>2025-03-31 13:46:45 -0400
committerwires <wires@noreply.wires.systems>2025-03-31 13:46:45 -0400
commitdcee4fe4b15738c30eb3962ff6caa5db8845254c (patch)
tree65c28a0f175a266a2a105cb2a28d2ecbb74abbfe /layouts/_default
parentadd deploy script (diff)
downloadblog-dcee4fe4b15738c30eb3962ff6caa5db8845254c.tar.gz
theme changes
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/_markup/render-codeblock.html1
-rw-r--r--layouts/_default/_markup/render-heading.html3
-rw-r--r--layouts/_default/baseof.html47
3 files changed, 27 insertions, 24 deletions
diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html
deleted file mode 100644
index 9bfc3b1..0000000
--- a/layouts/_default/_markup/render-codeblock.html
+++ /dev/null
@@ -1 +0,0 @@
-<pre class="chroma"><code class="language-{{ .Type }}" data-lang="{{ .Type }}">{{ (transform.HighlightCodeBlock .).Inner }}</code></pre>
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..d49699e
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,3 @@
+<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
+  <a href="#{{ .Anchor }}">{{ .Text }}</a>
+</h{{ .Level }}>
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ecac3b1..0504861 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,29 +1,30 @@
-<!DOCTYPE html>
+<!doctype html>
 <html lang="{{ .Site.Language.LanguageCode }}">
-    <head>
+  <head>
     {{ 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>
-<nav id="main-nav">
-<ul>
-<li><a href="{{.Site.BaseURL}}" id="site-title">{{.Site.Title}}</a></li>
-{{ with .Site.Menus.main }}
-        {{ range . }}
+    <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>
+    <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>
+        {{ end }} {{ end }}
+      </ul>
+    </nav>
 
-<main id="main">
-{{ block "main" . }}{{ end }}
-</main>
-{{ partial "footer.html" . }}
-</body>
+    <main id="main">{{ block "main" . }}{{ end }}</main>
+    {{ partial "footer.html" . }}
+  </body>
 </html>