aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/assets/res/css/base.css2
-rw-r--r--www/assets/res/css/todos.css25
-rw-r--r--www/config/_default/hugo.yaml4
-rw-r--r--www/content/notes/_index.md15
-rw-r--r--www/content/notes/cheat-sheet.md7
-rw-r--r--www/content/notes/hurd/_index.md15
-rw-r--r--www/content/notes/hurd/cheat-sheet.md5
-rw-r--r--www/content/notes/hurd/links.md (renamed from www/content/notes/hurd.md)24
-rw-r--r--www/content/notes/hurd/todos.md18
-rw-r--r--www/content/notes/todos.md7
-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
26 files changed, 63 insertions, 79 deletions
diff --git a/www/assets/res/css/base.css b/www/assets/res/css/base.css
index 06fcb4b..4449c40 100644
--- a/www/assets/res/css/base.css
+++ b/www/assets/res/css/base.css
@@ -39,7 +39,7 @@ table {
border-collapse: collapse;
&, :is(td,th) {
- padding: 0.4em;
+ padding: 0.2em 0.4em;
border: 1px solid var(--table-border-color);
}
}
diff --git a/www/assets/res/css/todos.css b/www/assets/res/css/todos.css
index 7802812..f9aa23b 100644
--- a/www/assets/res/css/todos.css
+++ b/www/assets/res/css/todos.css
@@ -1,24 +1,17 @@
-.todo {
- h3::before {
- font-family: monospace;
+h3.todo {
+ &::before {
+ font-size: small;
}
- &.working h3::before {
- content: "* ";
+ &.working::before {
+ content: "(working) ";
}
- &.done h3::before {
- content: "✓ ";
+ &.done::before {
+ content: "(done) ";
}
- &.give-up {
- &, a:link, a:visited {
- color: grey;
- }
-
- h3:before {
- content: "orz ✖ ";
- }
+ &.give-up::before {
+ content: "(give up) ";
}
}
-
diff --git a/www/config/_default/hugo.yaml b/www/config/_default/hugo.yaml
index b913177..289b0b4 100644
--- a/www/config/_default/hugo.yaml
+++ b/www/config/_default/hugo.yaml
@@ -18,6 +18,10 @@ frontmatter:
markup:
goldmark:
+ parser:
+ attribute:
+ block: true
+ title: true
extensions:
table: true
highlight:
diff --git a/www/content/notes/_index.md b/www/content/notes/_index.md
index 3c736ed..3f96f73 100644
--- a/www/content/notes/_index.md
+++ b/www/content/notes/_index.md
@@ -1,5 +1,16 @@
---
title: "Notes"
-params:
- recursive: true
+date: 2025-06-14T21:24:00+08:00
+lastmod: 2025-06-14T21:24:00+08:00
+layout: single
---
+
+- [Cheat Sheet](/notes/cheat-sheet)
+
+- [Hurd](/notes/hurd)
+
+ - [Cheat Sheet](/notes/hurd/cheat-sheet)
+
+ - [Todos](/notes/hurd/todos)
+
+ - [Useful Links](/notes/hurd/links)
diff --git a/www/content/notes/cheat-sheet.md b/www/content/notes/cheat-sheet.md
index 56bc92a..2f30140 100644
--- a/www/content/notes/cheat-sheet.md
+++ b/www/content/notes/cheat-sheet.md
@@ -4,11 +4,8 @@ date: 2025-04-01T23:09:53+08:00
lastmod: 2025-06-12T01:09:39+08:00
---
-{{< mono >}}
-
goto: [Hurd Cheat Sheet (in a separated page)](/notes/hurd/cheat-sheet)
-
-{{< /mono >}}
+{class="mono"}
## GRUB
@@ -44,7 +41,7 @@ docker run -it --rm -v "./data/git/user-info:/user-info" httpd htpasswd /user-in
A complete command is `[prefix] [docker (based on challenge kind)] [command] [challenge] [domains] [test] [misc]`
| part | for | segment |
-| --- | --- | --- |
+| :-: | :-: | --- |
| prefix | * | `docker run -it --rm --name certbot -v "./data/certbot/certs:/etc/letsencrypt" -v "./data/certbot/data:/var/lib/letsencrypt"` |
| docker | challenge standalone | `-p "0.0.0.0:80:80"` |
| docker | challenge nginx | `-v "./data/certbot/webroot:/var/www/certbot"` |
diff --git a/www/content/notes/hurd/_index.md b/www/content/notes/hurd/_index.md
new file mode 100644
index 0000000..8faf70b
--- /dev/null
+++ b/www/content/notes/hurd/_index.md
@@ -0,0 +1,15 @@
+---
+title: "Hurd"
+date: 2025-03-03T15:34:41+08:00
+lastmod: 2025-06-12T01:09:39+08:00
+layout: single
+---
+
+This is the gateway page for various notes about
+[GNU/Hurd](https://www.gnu.org/software/hurd/) written by me.
+
+- [Cheat Sheet](/notes/hurd/cheat-sheet)
+
+- [Todos](/notes/hurd/todos)
+
+- [Useful Links](/notes/hurd/links)
diff --git a/www/content/notes/hurd/cheat-sheet.md b/www/content/notes/hurd/cheat-sheet.md
index f48e943..6fe5ccd 100644
--- a/www/content/notes/hurd/cheat-sheet.md
+++ b/www/content/notes/hurd/cheat-sheet.md
@@ -1,7 +1,7 @@
---
title: "Hurd Cheat Sheet"
date: 2025-06-12T00:59:16+08:00
-lastmod: 2025-06-12T00:59:16+08:00
+lastmod: 2025-06-14T20:34:06+08:00
---
## Mirrors
@@ -45,6 +45,9 @@ boot on.
QEMU cli arguments `-machine q35` enables AHCI and SATA, and is **required for
official x86_64 image to boot**. As for i386, I haven't checked now.
+There is [a Deno script](https://github.com/crupest/crupest/blob/dev/deno/tools/manage-vm.ts)
+written by me to help define and build QEMU cli arguments of VMs.
+
## Inside Hurd
Configure/Setup network
diff --git a/www/content/notes/hurd.md b/www/content/notes/hurd/links.md
index aeb9b15..1e966d4 100644
--- a/www/content/notes/hurd.md
+++ b/www/content/notes/hurd/links.md
@@ -1,19 +1,11 @@
---
-title: "Hurd"
-date: 2025-03-03T15:34:41+08:00
-lastmod: 2025-06-12T01:09:39+08:00
+title: "Hurd Useful Links"
+date: 2025-06-14T20:34:06+08:00
+lastmod: 2025-06-14T20:34:06+08:00
---
-{{< mono >}}
-
-goto: [Cheat Sheet](/notes/hurd/cheat-sheet) | [Todos](/notes/hurd/todos)
-
-{{< /mono >}}
-
## links
-{{< mono >}}
-
| name | link |
| --- | --- |
| kernel-list-archive | <https://lists.gnu.org/archive/html/bug-hurd/> |
@@ -22,12 +14,8 @@ goto: [Cheat Sheet](/notes/hurd/cheat-sheet) | [Todos](/notes/hurd/todos)
| kernel-home | <https://www.gnu.org/software/hurd/index.html> |
| debian-home | <https://www.debian.org/ports/hurd/> |
-{{< /mono >}}
-
refs:
-{{< mono >}}
-
| name | link |
| --- | --- |
| c | <https://en.cppreference.com/w/c> |
@@ -36,20 +24,14 @@ refs:
| posix 2008 | <https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/> |
| glibc | <https://sourceware.org/glibc/manual/2.41/html_mono/libc.html> |
-{{< /mono >}}
-
## mailing lists / irc
-{{< mono >}}
-
| name | address |
| --- | --- |
| hurd | <bug-hurd@gnu.org> |
| debian | <debian-hurd@lists.debian.org> |
| irc | librechat #hurd |
-{{< /mono >}}
-
## *_MAX patch
See [this](posts/c-func-ext.md)
diff --git a/www/content/notes/hurd/todos.md b/www/content/notes/hurd/todos.md
index 8fe068b..2dbded3 100644
--- a/www/content/notes/hurd/todos.md
+++ b/www/content/notes/hurd/todos.md
@@ -1,7 +1,7 @@
---
title: "Hurd Todos"
date: 2025-03-03T21:22:35+08:00
-lastmod: 2025-03-03T23:28:46+08:00
+lastmod: 2025-06-14T20:34:06+08:00
params:
css:
- todos
@@ -9,7 +9,11 @@ params:
## Porting
-{{< todo name=pam state=give-up >}}
+### hurd-fs4 {class="todo working"}
+
+<https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/872>
+
+### pam {class="todo give-up"}
{{< link-group >}}
git
@@ -23,9 +27,7 @@ mail
<https://lists.debian.org/debian-hurd/2025/02/msg00018.html>
{{< /link-group >}}
-{{< /todo >}}
-
-{{< todo name=abseil state=working >}}
+### abseil {class="todo working"}
{{< link-group >}}
git
@@ -40,9 +42,7 @@ mail
<https://lists.debian.org/debian-hurd/2025/02/msg00035.html>
{{< /link-group >}}
-{{< /todo >}}
-
-{{< todo name=libgav1 state=done >}}
+### libgav1 {class="todo done"}
{{< link-group >}}
git
@@ -56,5 +56,3 @@ misc
mail: <https://lists.debian.org/debian-hurd/2025/02/msg00016.html>
gerrit: <https://chromium-review.googlesource.com/c/codecs/libgav1/+/6239812>
{{< /link-group >}}
-
-{{< /todo >}}
diff --git a/www/content/notes/todos.md b/www/content/notes/todos.md
deleted file mode 100644
index 1625362..0000000
--- a/www/content/notes/todos.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: "Todos"
-date: 2025-03-03T15:34:53+08:00
-lastmod: 2025-03-03T23:28:46+08:00
----
-
-[Hurd](/notes/hurd/todos)
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