#+title: 一个测试网站 * 测试网站 :post: 带有 =post= tag 的第一层级 heading 下的 python block 就是整个网站的全局设置: #+begin_src python # 可以用相对当前文件的路径或绝对路径 publish_folder = "./www" org_prefixes = ["~/org/", "."] # 可以指定不同 index 模版 index_template = "../themes/darkfloat/index.html" beian = "京ICP备2021000000号" github_url = "https://github.com/metaescape" github_name = "mE" site_repo = "https://github.com/metaescape/hugchange.life/" site_name = "demo for orgchange" #+end_src 带有 =post= tag 的第一层级 heading 下的 emacs-lisp block 也是整个网站的全局设置: #+begin_src emacs-lisp :results none :eval no (setq org-id-locations-file "~/.wemacs/.org-id-locations") #+end_src ** [[./demo.org][demo]] demo.org 将会被发布,可以在 python block 中设置该文章分类: #+begin_src python categories = ["sample","test"] #+end_src 在以下 emacs block 中设置 demo.org 导出的选项: #+begin_src emacs-lisp :results none :eval no (setq org-export-with-section-numbers t) #+end_src ** [[./index.org][index]] :draft: 有 draft 标签不会显示在主页,但仍然会被发布,如果不需要发布,则用 =noexport= 标签 ** [[./multipage.org][multipage]] 以下选项表示使用该文件中第一个 level 1 heading 作为索引页面,如果不设置改变量,默认发布成一个 html 文件 #+begin_src python multipage_index = "default" #+end_src