diff --git a/index.html b/index.html deleted file mode 100644 index c4a949a..0000000 --- a/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - -d0ngd1gua - - - - - - -
-
-(let ((name "dongdigua")
-      (blog "posts/")
-      (feed "rss.xml")
-      (github "@dongdigua")
-      (payment "monero")
-      (pgp "0x56CEE157C9F5334F")
-      (interests
-       '("computer science"
-         "cyber security"
-         "Minecraft redstone survival"
-         "anime"
-         (Lost (In (Superfluous (Parentheses))))))))
-    
-
- diff --git a/org/publish_config.el b/org/publish_config.el index 66b300b..33ebf9e 100644 --- a/org/publish_config.el +++ b/org/publish_config.el @@ -4,10 +4,30 @@ ;; System Crafter's video: https://youtu.be/AfkrzFodoNw -(require 'org) -(require 'ox) +(eval-when-compile + (require 'package) + (package-initialize) -(setq org-html-validation-link nil) + (require 'org) + (require 'ox) + (require 'webfeeder)) + +;; https://emacs.stackexchange.com/questions/36366/disable-auto-id-generation-in-org-mode-html-export +(defun html-body-id-filter (output backend info) + "Remove random ID attributes generated by Org." + (when (eq backend 'html) + (replace-regexp-in-string + " href=\"#org[[:alnum:]]\\{7\\}\"" + "" + (replace-regexp-in-string + " id=\"[[:alpha:]-]*org[[:alnum:]]\\{7\\}\"" + "" + output t) + t))) +(add-to-list 'org-export-filter-final-output-functions 'html-body-id-filter) + +(setq org-html-validation-link nil + org-export-with-sub-superscripts nil) (setq org-publish-project-alist '(("org-pages" :base-directory "."