mirror.dongdigua.github.io/org/publish_config.el

45 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2022-07-13 16:26:16 +08:00
;; this file and Makefile from:
;; https://www.cnblogs.com/banjia/archive/2012/09/29/2708966.html
2022-09-15 11:33:55 +08:00
;; CSDN, 阿里云, 这些垃圾都在未授权盗搬, 结果这个东西有些地方都过时了. 能不能有点创新...
;; System Crafter's video: https://youtu.be/AfkrzFodoNw
2022-07-13 16:26:16 +08:00
(require 'org)
(require 'ox)
(setq org-html-validation-link nil)
2022-07-13 16:26:16 +08:00
(setq org-publish-project-alist
'(("org-pages"
:base-directory "."
:base-extension "org"
2022-09-11 11:20:31 +08:00
:publishing-directory "./../"
2022-07-13 16:26:16 +08:00
:recursive t
:exclude "画大饼.org"
:publishing-function org-html-publish-to-html
:preserve-breaks t
2022-09-15 11:33:55 +08:00
:org-html-validation-link nil
:org-html-head-include-default-style nil
2022-09-09 16:08:21 +08:00
;; https://github.com/rgb-24bit/org-html-theme-list org-joshua
:html-head "<link rel='stylesheet' type='text/css' href='./../css/main.css' />"
:html-link-home "https://dongdigua.github.io"
2022-09-11 11:20:31 +08:00
:html-link-up "./../"
2022-07-13 16:26:16 +08:00
)))
(defun myweb-publish ()
"Publish myweb."
(interactive)
(setq debug-on-error t)
(org-publish-all)
(webfeeder-build
"rss.xml"
2022-09-11 11:20:31 +08:00
"./../"
"https://dongdigua.github.io"
2022-09-11 11:20:31 +08:00
(delete "rss.html" (directory-files "./../" nil ".*\.html$"))
:title "dongdigua's blog"
:description "Blog!"
:builder 'webfeeder-make-rss)
)
2022-07-13 16:26:16 +08:00