diff --git a/.gitattributes b/.gitattributes index 15ac21d..0dabda3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,5 +3,4 @@ *.org linguist-vendored=false *.org linguist-detectable=true -index.gmi ident -posts.md ident +index.gmi filter=dater diff --git a/gmi/README.gmi b/gmi/README.gmi deleted file mode 100644 index b14b867..0000000 --- a/gmi/README.gmi +++ /dev/null @@ -1,22 +0,0 @@ -# Gemtext - -## Why? -* I like plaintext -* gemtext is lightweight -* no format conversion, just serve it - -## Linewrap? -I usually do not use linewrap when I'm writing, because it makes me clearer -and more logical than put everything together, and I like to view text -shorter than 2/3 of the screen, and it is easier to nevigate in editor -(jump by line instead of jump by word in a long line). -When exporting org to html, I add \n:t so the export process will keep my -linebreak, so on website it is also not a mess. - -But in gemini, it's recommended to write long lines[1], and such as in elpher client, it wraps line in 79 character, so I need to either write within 80 column, or write long lines and give the linewrap to "leave it up to the receiving Gemini client to wrap your lines to fit the device's screen size and the user's preference" - -I will wrap line freely as I want, neither 80 column rule[2] nor long line. - - -=> gemini://gemini.circumlunar.space/docs/gemtext.gmi [1]: Gemini Doc -=> https://www.emacswiki.org/emacs/EightyColumnRule [2]: EmacsWiki EightyColumnRule diff --git a/gmi/docker/README.gmi b/gmi/docker/README.gmi new file mode 100644 index 0000000..fb9fefb --- /dev/null +++ b/gmi/docker/README.gmi @@ -0,0 +1,23 @@ +# Docker & Gemini + +## Server Program +=> https://github.com/mbrubeck/agate agate + +alternatives: +=> https://gmid.omarpolo.com gmid +=> https://tildegit.org/solene/vger vger + + +## TODO +CGI script: +* inform the server to update git +* check the log + +both need authentication, idea: +* 6x (CLIENT CERTIFICATE REQUIRED) +=> gemini://gemini.circumlunar.space/docs/tls-tutorial.gmi doc: TLS +=> https://adnano.co/2021/03/06/gemini-tls/ TLS recommendations for Gemini + +* GPG in 1x (INPUT) +client: date -u +%Y%m%dT%H | gpg -as +server: verify time then signature diff --git a/gmi/docker/run-wrapper.sh b/gmi/docker/run-wrapper.sh index 7a86cbb..169d59d 100755 --- a/gmi/docker/run-wrapper.sh +++ b/gmi/docker/run-wrapper.sh @@ -2,7 +2,7 @@ crond -f -d 8 & tail -f /var/log/git.log & -agate -eC --content dongdigua.github.io --hostname $GEMINI_HOST +agate -C --content dongdigua.github.io --hostname $GEMINI_HOST wait -n echo $? diff --git a/index.gmi b/index.gmi index a4ecd9d..6f5c57f 100644 --- a/index.gmi +++ b/index.gmi @@ -8,4 +8,4 @@ Hello! this is the dondigua's home on Gemini => https://dongdigua.github.io https site mirror -$Id$ +$Date$ diff --git a/posts.md b/posts.md index 1db7fe5..dff88ef 100644 --- a/posts.md +++ b/posts.md @@ -57,5 +57,3 @@ if you have some problem with sway, you can probably find solution here Practice English writing skills --- - -$Id$