代码: 全选
(require 'org-publish)
(setq org-publish-project-alist
'(
("org-notes"
:base-directory "~/org/"
:base-extension "org"
:publishing-directory "~/public_html/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
:auto-preamble t
:style "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/worg.css\">"
:makeindex "testindex.org"
:email "[email protected]"
:author "fengya90"
:auto-sitemap t ; Generate sitemap.org automagically...
:sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default)...
:sitemap-title "Sitemap" ; ... with title 'Sitemap'.
)
("org-static"
xxxxxxxxxxxxx
xxxxxxxx
)
("org" :components ("org-notes" "org-static")).
))
代码: 全选
:auto-sitemap t ; Generate sitemap.org automagically...
:sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default)...
:sitemap-title "Sitemap" ; ... with title 'Sitemap'.
这难道不是导航的正确配置么,可是我publish后没有出现导航页面的样子