mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-12-03 02:40:53 +08:00
full site available on gemini!
This commit is contained in:
parent
965236d937
commit
b20c31ed9e
4
.meta
Normal file
4
.meta
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
org/*.org: text/plain
|
||||||
|
misc/*: text/plain
|
||||||
|
pgp: text/plain
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
crond -f -d 8 &
|
crond -f -d 8 &
|
||||||
tail -f /var/log/git.log &
|
tail -f /var/log/git.log &
|
||||||
agate --content dongdigua.github.io/gmi -e --hostname $GEMINI_HOST
|
agate -eC --content dongdigua.github.io --hostname $GEMINI_HOST
|
||||||
|
|
||||||
wait -n
|
wait -n
|
||||||
echo $?
|
echo $?
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
cd /dongdigua.github.io
|
cd /dongdigua.github.io
|
||||||
git pull --rebase >> /var/log/git.log 2>&1
|
git pull --rebase >> /var/log/git.log 2>&1
|
||||||
|
python misc/mdlist2gmi.py > posts.gmi
|
||||||
|
6
index.gmi
Normal file
6
index.gmi
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
~dongdigua
|
||||||
|
|
||||||
|
(a fancy homepage coming soon)
|
||||||
|
|
||||||
|
=> posts posts
|
||||||
|
=> https://dongdigua.github.io HyperTextMachineLearning site
|
@ -47,6 +47,10 @@
|
|||||||
(<a id="normal" href="https://xkcd.com/297">Lost (In (Suspicious (Parentheses)))</a>)))))</pre>
|
(<a id="normal" href="https://xkcd.com/297">Lost (In (Suspicious (Parentheses)))</a>)))))</pre>
|
||||||
<br>
|
<br>
|
||||||
<pre id="quote"></pre>
|
<pre id="quote"></pre>
|
||||||
|
|
||||||
|
<p><pre>
|
||||||
|
Gemini available! <b><a href=gemini://shenjack.top>gemini://shenjack.top</a></b>
|
||||||
|
</pre></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script src="./js/random-quote.js"></script>
|
<script src="./js/random-quote.js"></script>
|
||||||
|
30
misc/mdlist2gmi.py
Executable file
30
misc/mdlist2gmi.py
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#! /usr/bin/env python3
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
def concat_gmi(link, name):
|
||||||
|
return "=> " + link + "\t" + name
|
||||||
|
|
||||||
|
|
||||||
|
f = open("posts.md")
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
|
regxp = re.compile("- \[(.+)\]\((.+)\)<br>")
|
||||||
|
|
||||||
|
for l in lines:
|
||||||
|
if l == "### Long Term Update\n":
|
||||||
|
print("")
|
||||||
|
print(l, end="")
|
||||||
|
|
||||||
|
match = regxp.match(l)
|
||||||
|
if match:
|
||||||
|
link = match.group(2)
|
||||||
|
if re.match(".+\.[a-z]+\.txt$", link):
|
||||||
|
link = link[:-4]
|
||||||
|
else:
|
||||||
|
link = "org/" + link + ".org"
|
||||||
|
|
||||||
|
print(concat_gmi(link, match.group(1)))
|
||||||
|
|
||||||
|
|
||||||
|
f.close()
|
@ -1,5 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
ls gmi | xargs -I {} ln -s gmi/{} gmi/{}.txt
|
set -x
|
||||||
ln -s code/lol.diff lol.diff.txt
|
|
||||||
|
cd gmi
|
||||||
|
ls *.gmi | xargs -I {} ln -s {} {}.txt
|
||||||
|
cd ..
|
||||||
|
ln -s lol.diff misc/lol.diff.txt
|
||||||
ln -s pgp pgp.txt
|
ln -s pgp pgp.txt
|
||||||
|
2
posts.md
2
posts.md
@ -32,8 +32,6 @@ any kind of contribution is welcome
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Long Term Update
|
### Long Term Update
|
||||||
- [<font color=red>大概是语文知识整理</font>](digua-YW)<br>
|
|
||||||
Big project
|
|
||||||
- [\[Mirror\] My kernel config recipe](kernel)<br>
|
- [\[Mirror\] My kernel config recipe](kernel)<br>
|
||||||
- [Gopher/Gemini reactions](gmi/re.gmi.txt)<br>
|
- [Gopher/Gemini reactions](gmi/re.gmi.txt)<br>
|
||||||
- [Gopher/Gemini collections, a quiet web](gmi/collections.gmi.txt)<br>
|
- [Gopher/Gemini collections, a quiet web](gmi/collections.gmi.txt)<br>
|
||||||
|
Loading…
Reference in New Issue
Block a user