;; To prevent inline-css when exporting html. will use external css
(setq org-html-htmlize-output-type 'css)
(setq blog-extra-head
(concat
;; To prevent inline-css when exporting html. will use external css
(setq org-html-htmlize-output-type 'css)
(setq blog-extra-head
(concat
- ;; "<link rel='stylesheet' href='" css-file "' />\n"
- "<link rel='stylesheet' href='../css/main.css' />\n"
- "<link rel='stylesheet' href='../css/code.css' />"
- ))
+ "<link rel='stylesheet' href='/css/my.css' />\n"
+ "<link rel='stylesheet' href='/css/code.css' />"))
- "<li><a href= '/' >About</a></li>"
- "<li><a href= '/blog.html' >Blog</a></li>"
- "<li><a href= '/home.html' >Home</a></li>"
+ "<li><a href= '/about.html' >About</a></li>"
+ "<li><a href= '/posts/sitemap.html' >Blog</a></li>"
+ "<li><a href= '/index.html' >Home</a></li>"
"Set project alist. `output-dir' is the directory of publish-directory.
`root-dir' is the root directory of blog repository."
"Set project alist. `output-dir' is the directory of publish-directory.
`root-dir' is the root directory of blog repository."
:base-directory ,root-dir
:base-extension "org"
:publishing-directory ,output-dir
:base-directory ,root-dir
:base-extension "org"
:publishing-directory ,output-dir
:html-head-include-scripts nil
:html-head-extra ,blog-extra-head
:html-preamble ,blog-header
:html-head-include-scripts nil
:html-head-extra ,blog-extra-head
:html-preamble ,blog-header
:base-directory ,(concat root-dir "/posts")
:base-extension "org"
:publishing-directory ,(concat output-dir "/posts")
:base-directory ,(concat root-dir "/posts")
:base-extension "org"
:publishing-directory ,(concat output-dir "/posts")