我正在尝试使用 org-mode 发布网页。两个问题:
- 有没有办法“同步” 中的 org-mode 文件
base-directory和 中的 html 文件publishing-directory?具体来说,如果我删除 org 中的文件base-directory,我是否也可以org-publish-html删除 html 目录中的相应文件? 如果我在子目录中有页面,如何
.css在根目录中指定单个文件用于样式表?例如,我的目录结构如下:public_html/
- css/
- 我的样式.css
- 索引.html
- 子目录/
- 索引.html
- css/
使用以下规范org-publish-project-alist(这只是一个子集)-
:publishing-directory "public_html"
:style "<link rel=\"stylesheet\" href=\"css/mystyle.css\" type=\"text/css\"/>"
mystyle.css被使用,public_html/index.html但不被使用public_html/subdir/index.html。是否有一个简单的补救措施(我希望子目录中的两个/所有文件都使用样式表)?
非常感谢~