finally! org htmlize css

This commit is contained in:
dongdigua 2023-06-07 08:25:57 +08:00
parent f51f1acfe4
commit 4ebcc0eda4
6 changed files with 106 additions and 9 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
*.html
*.xml
*.gmi.txt
org.css
!index.html
!xmr.html
!404.html

View File

@ -1,3 +1,7 @@
/*
* extracted from index.html
* modified according to https://theoryware.net
*/
body{background-color:#2f383e;color:#d3c6aa;font-family:Monaco,Lucida Console,courier new,monospace;font-size:18px;margin:0 auto;max-width:64em}
a{color:#7fbbb3;text-decoration:none}
a:visited{color:#a7c080}

98
css/org.small.css Normal file
View File

@ -0,0 +1,98 @@
/* generic code */
.org-variable-name {
/* font-lock-variable-name-face */
color: #3a94c5;
}
.org-preprocessor {
/* font-lock-preprocessor-face */
color: #f85552;
}
.org-keyword {
/* font-lock-keyword-face */
color: #f85552;
}
.org-string {
/* font-lock-string-face */
color: #8da101;
}
.org-type {
/* font-lock-type-face */
color: #8da101;
}
.org-builtin, .org-elixir-atom {
/* font-lock-builtin-face */
color: #35a77c;
}
.org-comment, .org-comment-delimiter, .org-doc {
/* font-lock-comment-face */
color: #829181;
font-style: italic;
}
/* diff */
.org-diff-added {
/* diff-added */
background-color: #eeffee;
}
.org-diff-file-header {
/* diff-file-header */
background-color: #bfbfbf;
font-weight: bold;
}
.org-diff-function {
/* diff-function */
background-color: #d9d9d9;
}
.org-diff-header {
/* diff-header */
background-color: #d9d9d9;
}
.org-diff-hunk-header {
/* diff-hunk-header */
background-color: #d9d9d9;
}
.org-diff-index {
/* diff-index */
background-color: #bfbfbf;
font-weight: bold;
}
.org-diff-indicator-added {
/* diff-indicator-added */
color: #22aa22;
background-color: #eeffee;
}
.org-diff-indicator-changed {
/* diff-indicator-changed */
color: #aaaa22;
}
.org-diff-indicator-removed {
/* diff-indicator-removed */
color: #aa2222;
background-color: #ffeeee;
}
.org-diff-refine-added {
/* diff-refine-added */
background-color: #bbffbb;
}
.org-diff-refine-changed {
/* diff-refine-changed */
background-color: #ffff55;
}
.org-diff-refine-removed {
/* diff-refine-removed */
background-color: #ffcccc;
}
.org-diff-removed {
/* diff-removed */
background-color: #ffeeee;
}
/* sh */
.org-sh-escaped-newline, .org-sh-heredoc {
/* sh-escaped-newline */
color: #8da101;
}
.org-sh-quoted-exec {
/* sh-quoted-exec */
color: #ff00ff;
}

View File

@ -104,6 +104,7 @@ to 并 cc 是对的, 这样如果这是一个有很多回复的 thread, 不会
:CUSTOM_ID: mailru
:END:
换 OpenMbox.net 了, 希望是最后一次换邮件服务商
(2023.5) 好吧... 也被墙了
** [[https://www.mail-archive.com/misc@openbsd.org/msg184084.html][Live stick / cd from official sources]]
:PROPERTIES:
:CUSTOM_ID: livecd

View File

@ -1,9 +1,3 @@
;; this file and Makefile from:
;; https://www.cnblogs.com/banjia/archive/2012/09/29/2708966.html
;; CSDN, 阿里云, 这些垃圾都在未授权盗搬, 结果这个东西有些地方都过时了. 能不能有点创新...
;; System Crafter's video: https://youtu.be/AfkrzFodoNw
(require 'package)
(package-initialize)
(when (not package-archive-contents)
@ -50,8 +44,7 @@
:publishing-function org-html-publish-to-html
:preserve-breaks t
:org-html-validation-link nil
:html-head "<link rel='stylesheet' href='css/main.css' />"
:html-head "<link rel='stylesheet' href='css/main.css' /><link rel='stylesheet' href='css/org.small.css' />"
;; :html-head-include-default-style nil
:html-link-home "https://dongdigua.github.io"
:html-link-up "./../posts"

View File

@ -110,7 +110,7 @@ grub> boot
然后就是安装一堆软件
我没有安装那些 "现代化 UNIX 工具", 比如 htop bat exa zoxide, (ripgrep 除外, 太好用了)
7z 真的好用, 但是我觉得更应该学学标准的 UNIX 压缩解压工具
#+BEGIN_SRC ksh
#+BEGIN_SRC shell
doas pkg_add firefox neovim git pcmanfm noto-cjk # 特别必要的
doas pkg_add ripgrep fzf ncdu neofetch ranger p7zip colortree # 好用的工具
doas pkg_add gmake elixir gnutls # dev