summaryrefslogtreecommitdiff
path: root/themes/hugo-classic/layouts/_default
diff options
context:
space:
mode:
authorleo <azuminha1@gmail.co>2025-10-16 20:02:39 -0300
committerleo <azuminha1@gmail.co>2025-10-16 20:02:39 -0300
commit8e7996214af853803c4dd04534b1f5646b0ac1c5 (patch)
tree14a30d462b47b54d41613347782da6e48b71d082 /themes/hugo-classic/layouts/_default
first
Diffstat (limited to 'themes/hugo-classic/layouts/_default')
-rw-r--r--themes/hugo-classic/layouts/_default/list.html21
-rw-r--r--themes/hugo-classic/layouts/_default/single.html30
-rw-r--r--themes/hugo-classic/layouts/_default/terms.html13
3 files changed, 64 insertions, 0 deletions
diff --git a/themes/hugo-classic/layouts/_default/list.html b/themes/hugo-classic/layouts/_default/list.html
new file mode 100644
index 0000000..0ee6442
--- /dev/null
+++ b/themes/hugo-classic/layouts/_default/list.html
@@ -0,0 +1,21 @@
+{{ partial "header.html" . }}
+
+<div class="content-wrapper">
+{{if not .IsHome }}
+ <h1>{{ .Title | markdownify }}</h1>
+ {{ end }}
+
+ {{ .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>
+</div>
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-classic/layouts/_default/single.html b/themes/hugo-classic/layouts/_default/single.html
new file mode 100644
index 0000000..04688e0
--- /dev/null
+++ b/themes/hugo-classic/layouts/_default/single.html
@@ -0,0 +1,30 @@
+{{ partial "header.html" . }}
+<div class="article-meta">
+<h1><span class="title">{{ .Title | markdownify }}</span></h1>
+{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
+{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
+<p class="terms">
+ {{ range $i := (slice "categories" "tags") }}
+ {{ with ($.Param $i) }}
+ {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
+ {{ end }}
+ {{ end }}
+</p>
+</div>
+
+{{ if .Params.toc }}
+ {{ with .TableOfContents }}
+ <div id="table-of-contents">
+ <h2>Table of Contents</h2>
+ {{ . | safeHTML }}
+ </div>
+ {{ end }}
+{{ end }}
+
+<div class="content-wrapper">
+ <main>
+ {{ .Content }}
+ <a href="/"> >> Home</a>
+ </main>
+</div>
+{{ partial "footer.html" . }}
diff --git a/themes/hugo-classic/layouts/_default/terms.html b/themes/hugo-classic/layouts/_default/terms.html
new file mode 100644
index 0000000..1b515a5
--- /dev/null
+++ b/themes/hugo-classic/layouts/_default/terms.html
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+<h1>{{ .Title }}</h1>
+
+<ul class="terms">
+ {{ range .Data.Terms }}
+ <li>
+ <a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
+ </li>
+ {{ end }}
+</ul>
+
+{{ partial "footer.html" . }}