aboutsummaryrefslogtreecommitdiff
path: root/www/layouts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-04-01 23:44:50 +0800
committerYuqian Yang <crupest@crupest.life>2025-04-02 19:00:58 +0800
commit4182874b764ea3d6ec6224e1b4d0f1b38ff78c05 (patch)
tree089b061146913b7b8afa36c56cc5c64cb1124cc7 /www/layouts
parent6e266e43ddbd99cadc814190c54eb77890f42479 (diff)
downloadcrupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.tar.gz
crupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.tar.bz2
crupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.zip
feat(www): update.
Diffstat (limited to 'www/layouts')
-rw-r--r--www/layouts/_default/list.html11
-rw-r--r--www/layouts/index.html2
-rw-r--r--www/layouts/shortcodes/todo.html6
3 files changed, 14 insertions, 5 deletions
diff --git a/www/layouts/_default/list.html b/www/layouts/_default/list.html
index c7c6cce..5bb0b5e 100644
--- a/www/layouts/_default/list.html
+++ b/www/layouts/_default/list.html
@@ -4,9 +4,14 @@
{{ define "content" }}
{{ partial "nav.html" . }}
- <h1>Posts</h1>
+ <h1>{{ .Title }}</h1>
+ {{ $pages := .RegularPages }}
+ {{ if .Param "recursive" }}
+ {{ $pages = .RegularPagesRecursive }}
+ {{ end }}
{{ partial "preview/posts.html" (dict
- "h" "h3"
- "pages" (.RegularPages.ByDate.Reverse.Limit 3))
+ "h" "h3"
+ "pages" $pages
+ )
}}
{{ end }}
diff --git a/www/layouts/index.html b/www/layouts/index.html
index f456e71..e05af03 100644
--- a/www/layouts/index.html
+++ b/www/layouts/index.html
@@ -33,7 +33,7 @@
anything to me.
</p>
<div id="links" class="mono-link">
- jump-to:
+ goto:
<ul>
<li><a href="{{ absURL "/git/" }}">git</a></li>
{{ with .GetPage "/notes/hurd" }}
diff --git a/www/layouts/shortcodes/todo.html b/www/layouts/shortcodes/todo.html
index 1327b31..b4fc680 100644
--- a/www/layouts/shortcodes/todo.html
+++ b/www/layouts/shortcodes/todo.html
@@ -1 +1,5 @@
-<span class="todo {{ .Get "state" }}">{{ .Get "name" }}</span> \ No newline at end of file
+<section class="todo {{ .Get "state" }}">
+ <h3>{{ .Get "name" }}</h3>
+ {{ .Inner }}
+</section>
+