diff --git a/.gitattributes b/.gitattributes index 0dabda3..fbcda55 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,4 +3,5 @@ *.org linguist-vendored=false *.org linguist-detectable=true -index.gmi filter=dater +index.gmi filter=myversion +index.html filter=myversion diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index fdc6a5c..d6e49ee 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -20,6 +20,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 30 + fetch-tags: true - name: Install Emacs uses: purcell/setup-emacs@master @@ -32,6 +35,7 @@ jobs: - name: Build with Org run: | + make describe cd org make clean make diff --git a/Makefile b/Makefile index b879e31..7764c37 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ posts: gmi: misc/mdlist2gmi.py > posts.gmi +describe: + git describe --tags HEAD + sed -i "s/\$$v\\$$/\$$v: $$(git describe --tags HEAD)\\$$/g" index.html + clean: rm posts.html rm posts.gmi diff --git a/css/main.css b/css/main.css index 4fc2b91..0b1459d 100644 --- a/css/main.css +++ b/css/main.css @@ -313,10 +313,12 @@ https://github.com/rgb-24bit/org-html-theme-list org-joshua } #postamble { + font-family: monospace; + text-align: center; padding: .3em; margin-bottom: 1em; /* border: 1px solid gray; */ - background-color: #dddaec; /* Gentoo Purple */ + background-color: #eaeaea; /* orgmode.org */ } #show_source { @@ -376,7 +378,7 @@ blockquote { .figure img { background: white; - padding: 5px; + /* padding: 5px; */ -moz-box-shadow: 0px 0px 5px #c7c7c7; -webkit-box-shadow: 0px 0px 5px #c7c7c7; box-shadow: 0px 0px 5px #c7c7c7; diff --git a/images/badges/Arch.png b/images/badges/Arch.png new file mode 100644 index 0000000..f6ccce3 Binary files /dev/null and b/images/badges/Arch.png differ diff --git a/images/badges/made4.gif b/images/badges/made4.gif new file mode 100644 index 0000000..495caf8 Binary files /dev/null and b/images/badges/made4.gif differ diff --git a/images/badges/sources b/images/badges/sources new file mode 100644 index 0000000..786e261 --- /dev/null +++ b/images/badges/sources @@ -0,0 +1,2 @@ +http://www.grimalkin.org/emacs/made4.gif +https://ayoreis.com/static/Arch.png \ No newline at end of file diff --git a/index.gmi b/index.gmi index ef88736..a891329 100644 --- a/index.gmi +++ b/index.gmi @@ -20,4 +20,4 @@ => https://dongdigua.github.io https site mirror -$Date$ +$v$ diff --git a/index.html b/index.html index 9d7fd9b..6cc0a5d 100644 --- a/index.html +++ b/index.html @@ -18,9 +18,9 @@ a{color:#83c092;text-decoration:none} a:visited{color:#a7c080} a:hover{color:#d699b6} - .home{width:100%;min-height:calc(100vh - 60px);text-align:center} + .home{width:100%;min-height:calc(100vh - 50px);text-align:center} .home pre{max-width:80ch;padding-top:2em;margin-left:auto;margin-right:auto;line-height:1.5em;overflow:auto;display:inline-block;text-align:left} - footer{height:60px;text-align:center;background:#323d43} + footer{height:50px;text-align:center;background:#323d43} pre{font-family:inherit;margin:1rem} #quote{color:#7fbbb3;font-style:italic;text-align:center} #comment{color:#7a8478;font-style:italic} @@ -41,14 +41,13 @@ (github "@dongdigua") (bilibili "董地瓜") (payment "Monero") - (about "about) + (about "about")

   
   
 
 
diff --git a/org/about.org b/org/about.org
index b0c7ea9..83c72c4 100644
--- a/org/about.org
+++ b/org/about.org
@@ -1,4 +1,5 @@
 #+TITLE: about
+#+OPTIONS: \n:nil
 
 - 哺乳纲 灵长目 人科 人属 智人
 - I use Arch btw
@@ -8,3 +9,10 @@
 - 骑公路车的
 - Elixir > Rust > Python
 - 不是很喜欢扁平化设计
+
+-----
+
+[[https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png]]
+[[../images/badges/made4.gif]]
+[[../images/badges/Arch.png]]
+[[https://www.freebsd.org/gifs/power-button.gif]]
diff --git a/org/publish_config.el b/org/publish_config.el
index 71e71b2..b6391f4 100644
--- a/org/publish_config.el
+++ b/org/publish_config.el
@@ -22,10 +22,10 @@
 (setq org-html-postamble-format
       '(("en"
          "
-

dongdigua(dongdigua.github.io) CC BY-NC-SA, 禁止转载到私域(公众号,非自己托管的博客等)

+

dongdigua CC BY-NC-SA 禁止转载到私域(公众号,非自己托管的博客等)

Date: %d Build: %T

Proudly made with Emacs Org mode

-

If you have any idea, please contact me! I may add your comment

+

Email me to add comment

"))) (setq org-html-home/up-format "