aboutsummaryrefslogtreecommitdiff
path: root/www/layouts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-14 22:49:26 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-14 22:49:26 +0800
commit1da07b0b4a337342cc48627d9af78e7fd20a45cf (patch)
tree176e21523ae40289591fd5e249ffcc0a477c7380 /www/layouts
parent096f6ca0fa344363b4c76b7418a5743f9536034c (diff)
downloadcrupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.tar.gz
crupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.tar.bz2
crupest-1da07b0b4a337342cc48627d9af78e7fd20a45cf.zip
www: move layout files for new version of hugo and fix nested shortcodes.
Diffstat (limited to 'www/layouts')
-rw-r--r--www/layouts/_partials/css-res.html (renamed from www/layouts/partials/css-res.html)0
-rw-r--r--www/layouts/_partials/css.html (renamed from www/layouts/partials/css.html)0
-rw-r--r--www/layouts/_partials/date.html (renamed from www/layouts/partials/date.html)0
-rw-r--r--www/layouts/_partials/highlight.html (renamed from www/layouts/partials/highlight.html)0
-rw-r--r--www/layouts/_partials/js.html (renamed from www/layouts/partials/js.html)0
-rw-r--r--www/layouts/_partials/nav.html (renamed from www/layouts/partials/nav.html)0
-rw-r--r--www/layouts/_partials/preview/article.html (renamed from www/layouts/partials/preview/article.html)0
-rw-r--r--www/layouts/_partials/preview/post.html (renamed from www/layouts/partials/preview/post.html)0
-rw-r--r--www/layouts/_partials/preview/posts.html (renamed from www/layouts/partials/preview/posts.html)0
-rw-r--r--www/layouts/_shortcodes/link-group.html (renamed from www/layouts/shortcodes/link-group.html)0
-rw-r--r--www/layouts/baseof.html (renamed from www/layouts/_default/baseof.html)0
-rw-r--r--www/layouts/home.html (renamed from www/layouts/index.html)6
-rw-r--r--www/layouts/list.html (renamed from www/layouts/_default/list.html)6
-rw-r--r--www/layouts/shortcodes/mono.html3
-rw-r--r--www/layouts/shortcodes/todo.html5
-rw-r--r--www/layouts/single.html (renamed from www/layouts/_default/single.html)0
16 files changed, 4 insertions, 16 deletions
diff --git a/www/layouts/partials/css-res.html b/www/layouts/_partials/css-res.html
index 6fabf67..6fabf67 100644
--- a/www/layouts/partials/css-res.html
+++ b/www/layouts/_partials/css-res.html
diff --git a/www/layouts/partials/css.html b/www/layouts/_partials/css.html
index 12d3353..12d3353 100644
--- a/www/layouts/partials/css.html
+++ b/www/layouts/_partials/css.html
diff --git a/www/layouts/partials/date.html b/www/layouts/_partials/date.html
index 9769e4e..9769e4e 100644
--- a/www/layouts/partials/date.html
+++ b/www/layouts/_partials/date.html
diff --git a/www/layouts/partials/highlight.html b/www/layouts/_partials/highlight.html
index 28c510e..28c510e 100644
--- a/www/layouts/partials/highlight.html
+++ b/www/layouts/_partials/highlight.html
diff --git a/www/layouts/partials/js.html b/www/layouts/_partials/js.html
index 16dafa4..16dafa4 100644
--- a/www/layouts/partials/js.html
+++ b/www/layouts/_partials/js.html
diff --git a/www/layouts/partials/nav.html b/www/layouts/_partials/nav.html
index 42c9ad1..42c9ad1 100644
--- a/www/layouts/partials/nav.html
+++ b/www/layouts/_partials/nav.html
diff --git a/www/layouts/partials/preview/article.html b/www/layouts/_partials/preview/article.html
index 6245434..6245434 100644
--- a/www/layouts/partials/preview/article.html
+++ b/www/layouts/_partials/preview/article.html
diff --git a/www/layouts/partials/preview/post.html b/www/layouts/_partials/preview/post.html
index f0c6fb5..f0c6fb5 100644
--- a/www/layouts/partials/preview/post.html
+++ b/www/layouts/_partials/preview/post.html
diff --git a/www/layouts/partials/preview/posts.html b/www/layouts/_partials/preview/posts.html
index f2cb640..f2cb640 100644
--- a/www/layouts/partials/preview/posts.html
+++ b/www/layouts/_partials/preview/posts.html
diff --git a/www/layouts/shortcodes/link-group.html b/www/layouts/_shortcodes/link-group.html
index b16c2bc..b16c2bc 100644
--- a/www/layouts/shortcodes/link-group.html
+++ b/www/layouts/_shortcodes/link-group.html
diff --git a/www/layouts/_default/baseof.html b/www/layouts/baseof.html
index 6d00be5..6d00be5 100644
--- a/www/layouts/_default/baseof.html
+++ b/www/layouts/baseof.html
diff --git a/www/layouts/index.html b/www/layouts/home.html
index af3e11d..3cfc455 100644
--- a/www/layouts/index.html
+++ b/www/layouts/home.html
@@ -33,12 +33,12 @@
goto:
<ul>
<li><a href="{{ absURL "/git/" }}">git</a></li>
+ {{ with .GetPage "/notes" }}
+ <li><a href="{{ .RelPermalink }}">notes</a></li>
+ {{ end }}
{{ with .GetPage "/notes/hurd" }}
<li><a href="{{ .RelPermalink }}">hurd</a></li>
{{ end }}
- {{ with .GetPage "/notes/todos" }}
- <li><a href="{{ .RelPermalink }}">todos</a></li>
- {{ end }}
{{ with .GetPage "/notes/cheat-sheet" }}
<li><a href="{{ .RelPermalink }}">cheat-sheet</a></li>
{{ end }}
diff --git a/www/layouts/_default/list.html b/www/layouts/list.html
index 5bb0b5e..be33d10 100644
--- a/www/layouts/_default/list.html
+++ b/www/layouts/list.html
@@ -5,13 +5,9 @@
{{ define "content" }}
{{ partial "nav.html" . }}
<h1>{{ .Title }}</h1>
- {{ $pages := .RegularPages }}
- {{ if .Param "recursive" }}
- {{ $pages = .RegularPagesRecursive }}
- {{ end }}
{{ partial "preview/posts.html" (dict
"h" "h3"
- "pages" $pages
+ "pages" .RegularPages
)
}}
{{ end }}
diff --git a/www/layouts/shortcodes/mono.html b/www/layouts/shortcodes/mono.html
deleted file mode 100644
index ab183a5..0000000
--- a/www/layouts/shortcodes/mono.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="mono-container">
- {{ .Inner | .Page.RenderString }}
-</div>
diff --git a/www/layouts/shortcodes/todo.html b/www/layouts/shortcodes/todo.html
deleted file mode 100644
index b4fc680..0000000
--- a/www/layouts/shortcodes/todo.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<section class="todo {{ .Get "state" }}">
- <h3>{{ .Get "name" }}</h3>
- {{ .Inner }}
-</section>
-
diff --git a/www/layouts/_default/single.html b/www/layouts/single.html
index cd0e9c5..cd0e9c5 100644
--- a/www/layouts/_default/single.html
+++ b/www/layouts/single.html