aboutsummaryrefslogtreecommitdiffstats
path: root/public/how-do-i-build-this-site.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/how-do-i-build-this-site.html')
-rw-r--r--public/how-do-i-build-this-site.html50
1 files changed, 25 insertions, 25 deletions
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">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
<head>
-<!-- 2026-02-03 二 01:03 -->
+<!-- 2026-02-06 五 16:40 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>我是如何构建这个站点的</title>
@@ -259,10 +259,10 @@ scripts
<h4 id="org1cebfa5"><code>new_note()</code></h4>
<div class="outline-text-4" id="text-org1cebfa5">
<div class="org-src-container">
-<pre class="src src-bash">new_note() {
- file_name=$1
- cp $TEMPLATE_FILE "$NOTES_DIR/${file_name}.org" &amp;&amp; echo "创建笔记成功:$NOTES_DIR/${file_name}.org"
- echo "#+EXPORT_FILE_NAME: $PUBLIC_DIR/${file_name}.html" &gt;&gt; "$NOTES_DIR/${file_name}.org"
+<pre class="src src-bash"><span style="font-weight: bold;">new_note</span>() {
+ <span style="font-weight: bold; font-style: italic;">file_name</span>=$<span style="font-weight: bold; font-style: italic;">1</span>
+ cp $<span style="font-weight: bold; font-style: italic;">TEMPLATE_FILE</span> <span style="font-style: italic;">"$NOTES_DIR/${file_name}.org"</span> &amp;&amp; <span style="font-weight: bold;">echo</span> <span style="font-style: italic;">"&#21019;&#24314;&#31508;&#35760;&#25104;&#21151;&#65306;$NOTES_DIR/${file_name}.org"</span>
+ <span style="font-weight: bold;">echo</span> <span style="font-style: italic;">"#+EXPORT_FILE_NAME: $PUBLIC_DIR/${file_name}.html"</span> &gt;&gt; <span style="font-style: italic;">"$NOTES_DIR/${file_name}.org"</span>
}
</pre>
</div>
@@ -276,8 +276,8 @@ scripts
</p>
<div class="org-src-container">
-<pre class="src src-org">#+title:
-#+SETUPFILE: ~/niwa/template/setup/minimal.setup
+<pre class="src src-org">#+title:<span style="font-weight: bold;">
+</span><span style="font-weight: bold; font-style: italic;">#+SETUPFILE: ~/niwa/template/setup/minimal.setup</span>
</pre>
</div>
@@ -313,11 +313,11 @@ scripts
<h4 id="org88f87df">build()</h4>
<div class="outline-text-4" id="text-org88f87df">
<div class="org-src-container">
-<pre class="src src-bash">build() {
- emacs --batch \
- -l ~/.config/emacs/lisp/doom.el \
- -l "${SCRIPTS_DIR}/publish.el" \
- --eval "(org-publish-project \"niwa\" t)"
+<pre class="src src-bash"><span style="font-weight: bold;">build</span>() {
+ emacs --batch <span style="font-style: italic;">\</span>
+ -l ~/.config/emacs/lisp/doom.el <span style="font-style: italic;">\</span>
+ -l <span style="font-style: italic;">"${SCRIPTS_DIR}/publish.el"</span> <span style="font-style: italic;">\</span>
+ --eval <span style="font-style: italic;">"(org-publish-project \"niwa\" t)"</span>
}
</pre>
</div>
@@ -333,19 +333,19 @@ scripts
<h3 id="org81cae63">publish.el</h3>
<div class="outline-text-3" id="text-org81cae63">
<div class="org-src-container">
-<pre class="src src-elisp">(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"))))
+<pre class="src src-elisp">(<span style="font-weight: bold;">setq</span> org-publish-project-alist
+ '((<span style="font-style: italic;">"niwa-notes"</span>
+ <span style="font-weight: bold;">:base-directory</span> <span style="font-style: italic;">"~/niwa/notes"</span>
+ <span style="font-weight: bold;">:base-extension</span> <span style="font-style: italic;">"org"</span>
+ <span style="font-weight: bold;">:recursive</span> t
+ <span style="font-weight: bold;">:publishing-directory</span> <span style="font-style: italic;">"~/niwa/public"</span>
+ <span style="font-weight: bold;">:publishing-function</span> org-html-publish-to-html
+ <span style="font-weight: bold;">:with-author</span> nil
+ <span style="font-weight: bold;">:with-creator</span> nil
+ <span style="font-weight: bold;">:section-numbers</span> nil)
+
+ (<span style="font-style: italic;">"niwa"</span>
+ <span style="font-weight: bold;">:components</span> (<span style="font-style: italic;">"niwa-notes"</span>))))
</pre>
</div>