mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-28 01:40:54 +08:00
disable superscripts, disable auto id generation
This commit is contained in:
parent
88072659ba
commit
72470f96cf
41
index.html
41
index.html
@ -1,41 +0,0 @@
|
|||||||
<!-- idea from konfou.xyz -->
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang=en>
|
|
||||||
<meta charset=utf-8>
|
|
||||||
<title>d0ngd1gua</title>
|
|
||||||
<meta name=author content="dongdigua's blog">
|
|
||||||
<link rel=license href=https://creativecommons.org/licenses/by/4.0/>
|
|
||||||
<style>
|
|
||||||
*{scrollbar-color:gray #404040}
|
|
||||||
*::selection{background:#606060}
|
|
||||||
*::-webkit-scrollbar{width:auto}
|
|
||||||
*::-webkit-scrollbar-track{background:#404040}
|
|
||||||
*::-webkit-scrollbar-thumb{background:gray}
|
|
||||||
body{background-color:#373737;color:#dcdccc;font-family:dejavu sans mono,consolas,monospace;font-size:16px;padding:5em 0 0;margin:0}
|
|
||||||
a{color:#efdcbc;text-decoration:none}
|
|
||||||
a:visited{color:#dca3a3}
|
|
||||||
a:hover{color:#f8f893}
|
|
||||||
.home{position:absolute;width:100%;text-align:center}
|
|
||||||
.home pre{max-width:80ch;padding:0 1rem;margin-left:auto;margin-right:auto;line-height:1.5em;overflow:auto;display:inline-block;text-align:left}
|
|
||||||
pre{font-family:dejavu sans mono,consolas,monospace;margin:1rem}
|
|
||||||
</style>
|
|
||||||
<body>
|
|
||||||
<script src="https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
|
|
||||||
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css">
|
|
||||||
<div class="home p-contact contact h-card vcard">
|
|
||||||
<pre>
|
|
||||||
(let ((name "dongdigua")
|
|
||||||
(blog "<a href=posts>posts/</a>")
|
|
||||||
(feed "<a href=rss.xml>rss.xml</a>")
|
|
||||||
(github "<a href=https://github.com/dongdigua>@dongdigua</a>")
|
|
||||||
(payment "<a href=xmr.txt>monero</a>")
|
|
||||||
(pgp "<a href=pgpkey.txt>0x56CEE157C9F5334F</a>")
|
|
||||||
(interests
|
|
||||||
'("computer science"
|
|
||||||
"cyber security"
|
|
||||||
"Minecraft redstone survival"
|
|
||||||
"anime"
|
|
||||||
(Lost (In (Superfluous (Parentheses))))))))
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
@ -4,10 +4,30 @@
|
|||||||
|
|
||||||
;; System Crafter's video: https://youtu.be/AfkrzFodoNw
|
;; System Crafter's video: https://youtu.be/AfkrzFodoNw
|
||||||
|
|
||||||
(require 'org)
|
(eval-when-compile
|
||||||
(require 'ox)
|
(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
|
(setq org-publish-project-alist
|
||||||
'(("org-pages"
|
'(("org-pages"
|
||||||
:base-directory "."
|
:base-directory "."
|
||||||
|
Loading…
Reference in New Issue
Block a user