Skip to content

Commit

Permalink
about: 88x31 badges; footer css; myversion filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dongdigua committed Mar 30, 2024
1 parent e051e17 commit a859c52
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.org linguist-vendored=false
*.org linguist-detectable=true

index.gmi filter=dater
index.gmi filter=myversion
index.html filter=myversion
4 changes: 4 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,6 +35,7 @@ jobs:
- name: Build with Org
run: |
make describe
cd org
make clean
make
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
Binary file added images/badges/Arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/badges/made4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/badges/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http://www.grimalkin.org/emacs/made4.gif
https://ayoreis.com/static/Arch.png
2 changes: 1 addition & 1 deletion index.gmi
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
=> https://dongdigua.github.io https site mirror


$Date$
$v$
11 changes: 5 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -41,14 +41,13 @@
(github "<a href=https://github.com/dongdigua>@dongdigua</a>")
(bilibili "<a href=https://space.bilibili.com/489732092>董地瓜</a>")
(payment "<a href=https://dongdigua.github.io/xmr>Monero</a>")
(about "<a href=about.html">about</a>)</pre>
(about "<a href=about.html>about</a>")</pre>
<br>
<pre id="quote"></pre>
</div>
<footer>
© 2022-2024 dongdigua<br>
Gemini: <a href=gemini://shenjack.top>gemini://shenjack.top</a><br>
<a href=https://emacstalk.codeberg.page/post/035-made-with-emacs>Made with Emacs</a>
© 2022-2024 dongdigua<br>
$v$
</footer>
</body>
<script src="./js/random-quote.js"></script>
8 changes: 8 additions & 0 deletions org/about.org
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#+TITLE: about
#+OPTIONS: \n:nil

- 哺乳纲 灵长目 人科 人属 智人
- I use Arch btw
Expand All @@ -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]]
4 changes: 2 additions & 2 deletions org/publish_config.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
(setq org-html-postamble-format
'(("en"
"
<p>dongdigua(dongdigua.github.io) CC BY-NC-SA, 禁止转载到私域(公众号,非自己托管的博客等)</p>
<p>dongdigua CC BY-NC-SA 禁止转载到私域(公众号,非自己托管的博客等)</p>
<p class=\"date\">Date: %d Build: %T</p>
<p>Proudly made with Emacs Org mode</p>
<p>If you have any idea, please contact me! I may add your comment</p>
<p>Email me to add comment</p>
")))

(setq org-html-home/up-format "
Expand Down

0 comments on commit a859c52

Please sign in to comment.