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")