From 327797a634a5b8fe5acbd9063e734da0ffaaa095 Mon Sep 17 00:00:00 2001 From: verdant Date: Fri, 6 Feb 2026 16:41:13 +0800 Subject: docs: add note "generate-tag-pages" --- public/how-do-i-build-this-site.html | 50 ++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'public/how-do-i-build-this-site.html') diff --git a/public/how-do-i-build-this-site.html b/public/how-do-i-build-this-site.html index 452da93..0ff8b18 100644 --- a/public/how-do-i-build-this-site.html +++ b/public/how-do-i-build-this-site.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + 我是如何构建这个站点的 @@ -259,10 +259,10 @@ scripts

new_note()

-
new_note() {
-    file_name=$1
-    cp $TEMPLATE_FILE "$NOTES_DIR/${file_name}.org" && echo "创建笔记成功:$NOTES_DIR/${file_name}.org"
-    echo "#+EXPORT_FILE_NAME: $PUBLIC_DIR/${file_name}.html" >> "$NOTES_DIR/${file_name}.org"
+
new_note() {
+    file_name=$1
+    cp $TEMPLATE_FILE "$NOTES_DIR/${file_name}.org" && echo "创建笔记成功:$NOTES_DIR/${file_name}.org"
+    echo "#+EXPORT_FILE_NAME: $PUBLIC_DIR/${file_name}.html" >> "$NOTES_DIR/${file_name}.org"
 }
 
@@ -276,8 +276,8 @@ scripts

-
#+title:
-#+SETUPFILE: ~/niwa/template/setup/minimal.setup
+
#+title:
+#+SETUPFILE: ~/niwa/template/setup/minimal.setup
 
@@ -313,11 +313,11 @@ scripts

build()

-
build() {
-    emacs --batch \
-	-l ~/.config/emacs/lisp/doom.el \
-	-l "${SCRIPTS_DIR}/publish.el" \
-	--eval "(org-publish-project \"niwa\" t)"
+
build() {
+    emacs --batch \
+        -l ~/.config/emacs/lisp/doom.el \
+        -l "${SCRIPTS_DIR}/publish.el" \
+        --eval "(org-publish-project \"niwa\" t)"
 }
 
@@ -333,19 +333,19 @@ scripts

publish.el

-
(setq org-publish-project-alist
-      '(("niwa-notes"
-	 :base-directory "~/niwa/notes"
-	 :base-extension "org"
-	 :recursive t
-	 :publishing-directory "~/niwa/public"
-	 :publishing-function org-html-publish-to-html
-	 :with-author nil
-	 :with-creator nil
-	 :section-numbers nil)
-
-	 ("niwa"
-	  :components ("niwa-notes"))))
+
(setq org-publish-project-alist
+      '(("niwa-notes"
+         :base-directory "~/niwa/notes"
+         :base-extension "org"
+         :recursive t
+         :publishing-directory "~/niwa/public"
+         :publishing-function org-html-publish-to-html
+         :with-author nil
+         :with-creator nil
+         :section-numbers nil)
+
+         ("niwa"
+          :components ("niwa-notes"))))
 
-- cgit v1.2.3