summaryrefslogtreecommitdiff
path: root/themes/hugo-xmin/layouts
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2025-09-11 21:12:26 -0500
committerHunter Kvalevog <hunter@kvog.sh>2025-09-11 21:12:26 -0500
commit039a2f2755e0115b0339fea56d97fd90c4bbc951 (patch)
treef9c410ca8d06efeec9d2db16d3c7f34b9c1d3b28 /themes/hugo-xmin/layouts
Diffstat (limited to 'themes/hugo-xmin/layouts')
-rw-r--r--themes/hugo-xmin/layouts/404.html5
-rw-r--r--themes/hugo-xmin/layouts/_default/list.html16
-rw-r--r--themes/hugo-xmin/layouts/_default/single.html12
-rw-r--r--themes/hugo-xmin/layouts/_default/terms.html13
-rw-r--r--themes/hugo-xmin/layouts/index.html26
-rw-r--r--themes/hugo-xmin/layouts/partials/footer.html8
-rw-r--r--themes/hugo-xmin/layouts/partials/header.html20
7 files changed, 100 insertions, 0 deletions
diff --git a/themes/hugo-xmin/layouts/404.html b/themes/hugo-xmin/layouts/404.html
new file mode 100644
index 0000000..c2e4e40
--- /dev/null
+++ b/themes/hugo-xmin/layouts/404.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" . }}
+
+404 NOT FOUND
+
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-xmin/layouts/_default/list.html b/themes/hugo-xmin/layouts/_default/list.html
new file mode 100644
index 0000000..351a976
--- /dev/null
+++ b/themes/hugo-xmin/layouts/_default/list.html
@@ -0,0 +1,16 @@
+{{ partial "header.html" . }}
+
+{{ .Content }}
+
+<ul>
+ {{ $pages := .Pages }}
+ {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
+ {{ range (where $pages "Section" "!=" "") }}
+ <li>
+ <span class="date">{{ .Date.Format "2006/01/02" }}</span>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+ </li>
+ {{ end }}
+</ul>
+
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-xmin/layouts/_default/single.html b/themes/hugo-xmin/layouts/_default/single.html
new file mode 100644
index 0000000..ecf1861
--- /dev/null
+++ b/themes/hugo-xmin/layouts/_default/single.html
@@ -0,0 +1,12 @@
+{{ partial "header.html" . }}
+<div class="article-meta">
+<h2 style="border-bottom: none;"><span class="title">{{ .Title | markdownify }}</span></h2>
+{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
+{{ if (gt .Params.date 0) }}<p class="date">{{ .Date.Format "2006/01/02" }}</p>{{ end }}
+</div>
+
+<main class="main">
+{{ .Content }}
+</main>
+
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-xmin/layouts/_default/terms.html b/themes/hugo-xmin/layouts/_default/terms.html
new file mode 100644
index 0000000..71f47e7
--- /dev/null
+++ b/themes/hugo-xmin/layouts/_default/terms.html
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+<h1>{{ .Title }}</h1>
+
+<ul class="terms">
+ {{ range .Data.Terms }}
+ <li>
+ <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
+ </li>
+ {{ end }}
+</ul>
+
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-xmin/layouts/index.html b/themes/hugo-xmin/layouts/index.html
new file mode 100644
index 0000000..a3daf68
--- /dev/null
+++ b/themes/hugo-xmin/layouts/index.html
@@ -0,0 +1,26 @@
+{{ partial "header.html" . }}
+
+{{ .Content }}
+
+<h2>Cheat Sheets:</h2>
+<ul>
+ {{ $pages := .Site.RegularPages }}
+ {{ range (where $pages "Section" "cheatsheets") }}
+ <li>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+ </li>
+ {{ end }}
+</ul>
+
+<h2>Posts:</h2>
+<ul>
+ {{ $pages := .Site.RegularPages }}
+ {{ range (where $pages "Section" "posts") }}
+ <li>
+ <span class="date">{{ .Date.Format "2006/01/02" }}</span>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+ </li>
+ {{ end }}
+</ul>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/themes/hugo-xmin/layouts/partials/footer.html b/themes/hugo-xmin/layouts/partials/footer.html
new file mode 100644
index 0000000..e8560f2
--- /dev/null
+++ b/themes/hugo-xmin/layouts/partials/footer.html
@@ -0,0 +1,8 @@
+ <footer>
+ {{ with .Site.Params.footer }}
+ <hr/>
+ {{ replace . "{Year}" now.Year | markdownify}}
+ {{ end }}
+ </footer>
+ </body>
+</html>
diff --git a/themes/hugo-xmin/layouts/partials/header.html b/themes/hugo-xmin/layouts/partials/header.html
new file mode 100644
index 0000000..970ccec
--- /dev/null
+++ b/themes/hugo-xmin/layouts/partials/header.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
+ <link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}" />
+ </head>
+
+ <body>
+ <nav>
+ <a href="/">Home</a>
+ <a href="/about/">About</a>
+ <ul class="menu">
+ {{ range .Site.Menus.main }}
+ <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+ </nav>