gemini

gemini://andersuno.nu
git clone git://git.andersuno.nu/gemini.git
Log | Files | Refs

commit a586fe02c05d26884a0e46c1f099f884b197cd11
parent cdd824addb47f5b9605e0e46b2e6a2aa160f3604
Author: andersuno <anders.hedman01@gmail.com>
Date:   Sun, 27 Jun 2021 17:09:26 +0200

Org-mode remake and css-style added for html

Diffstat:
AREADME.org | 272+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahtml/donate.html | 45+++++++++++++++++++++++++++++++++++++++++++++
Ahtml/index.html | 35+++++++++++++++++++++++++++++++++++
Ahtml/referral.html | 17+++++++++++++++++
Ahtml/style.css | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mindex.gmi | 15++++++++-------
Areferral.gmi | 12++++++++++++
Drefferal.gmi | 12------------
8 files changed, 447 insertions(+), 19 deletions(-)

diff --git a/README.org b/README.org @@ -0,0 +1,272 @@ +#+AUTHOR: Anders Hedman +#+TITLE: Gemini / HTML web page + + +* index.gmi + +** Gemini + +#+begin_src :tangle yes :tangle index.gmi +``` + $$\ + $$ | + $$$$$$\ $$$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ + \____$$\ $$ __$$\ $$ __$$ |$$ __$$\ $$ __$$\ $$ _____|$$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ | + $$$$$$$ |$$ | $$ |$$ / $$ |$$$$$$$$ |$$ | \__|\$$$$$$\ $$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ |$$ | $$ | +$$ __$$ |$$ | $$ |$$ | $$ |$$ ____|$$ | \____$$\ $$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ |$$ | $$ | +\$$$$$$$ |$$ | $$ |\$$$$$$$ |\$$$$$$$\ $$ | $$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$\ $$ | $$ |\$$$$$$ | + \_______|\__| \__| \_______| \_______|\__| \_______/ \______/ \__| \__| \______/ \__|\__| \__| \______/ + +``` +# Welcome to andersuno.nu + +## Links +### Git +=> http://git.andersuno.nu My git repos +=> https://github.com/andersuno My Github + +### Podcast +=> https://odysee.com/@Parklivspodden:7 Parklivspodden on Odysee utilizing LBRY-protocol, Swedish podcast + +### QOTD Lampinismer +ncat --recv-only qotd.andersuno.nu 1700 +netcat -d qotd.andersuno.nu 1700 +telnet qotd.andersuno.nu 1700 + +# Support + +=> gemini://andersuno.nu/referral.gmi Referral links +=> gemini://andersuno.nu/donate.gmi Donations +#+end_src + +** HTML + +*** HTML header and stylesheet tangle + ++ Add CSS stylesheet ++ Add title + +#+begin_src html :tangle html/index.html +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> +#+end_src + +*** Generate tangle block with HTML body from index.gmi + +1. Start by tangling once to make updated source file index.gmi available +2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle +3. Tabbing inside src block removes RESULT block + +- Sed substitution making gemini://page.gmi into http://page.html + +#+begin_src bash :results raw :wrap src html \:tangle html/index.html + +sed 's/gemini:\/\//http:\/\//g;s/.gmi/.html/g' index.gmi | gmi2html + +#+end_src + +#+RESULTS: +#+begin_src html :tangle html/index.html +<pre> + $$\ + $$ | + $$$$$$\ $$$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ + \____$$\ $$ __$$\ $$ __$$ |$$ __$$\ $$ __$$\ $$ _____|$$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ | + $$$$$$$ |$$ | $$ |$$ / $$ |$$$$$$$$ |$$ | \__|\$$$$$$\ $$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ |$$ | $$ | +$$ __$$ |$$ | $$ |$$ | $$ |$$ ____|$$ | \____$$\ $$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ |$$ | $$ | +\$$$$$$$ |$$ | $$ |\$$$$$$$ |\$$$$$$$\ $$ | $$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$\ $$ | $$ |\$$$$$$ | + \_______|\__| \__| \_______| \_______|\__| \_______/ \______/ \__| \__| \______/ \__|\__| \__| \______/ + +</pre> +<h1>Welcome to andersuno.nu</h1> +<p><br/></p> +<h2>Links</h2> +<h3>Git</h3> +<a style="display: block;" href="http://git.andersuno.nu">My git repos</a> +<a style="display: block;" href="https://github.com/andersuno">My Github</a> +<p><br/></p> +<h3>Podcast</h3> +<a style="display: block;" href="https://odysee.com/@Parklivspodden:7">Parklivspodden on Odysee utilizing LBRY-protocol, Swedish podcast</a> +<p><br/></p> +<h3>QOTD Lampinismer</h3> +<p>ncat --recv-only qotd.andersuno.nu 1700</p> +<p>netcat -d qotd.andersuno.nu 1700</p> +<p>telnet qotd.andersuno.nu 1700</p> +<p><br/></p> +<h1>Support</h1> +<p><br/></p> +<a style="display: block;" href="http://andersuno.nu/referral.html">Referral links</a> +<a style="display: block;" href="http://andersuno.nu/donate.html">Donations</a> +#+end_src + + +* donate.gmi + +** Gemini + ++ "," prefix is added as escape char to make lines not headlines + - "," is automatically removed from tangled result ++ Alternative is not use zero-width space <200b> + - Not removed from tangled result + - C-x 8 <RET> zero width space | 200B <RET> + - Doom: SPC i u zero width space | 200B <RET> + +#+begin_src :tangle yes :tangle donate.gmi +# Crypto + +### Monero +,* XMR: 4AqZR9mNJ3aTaAqhG7a6RoSZUQSsWPsSoN5GnHSMGrDXS54VnLtJkjsFpsBfn6jacjA42FELwasK6TLFrNVePWivVMgzh8i + +### Bitcoin +,* BTC: 1L8fwzF4rUs1wc453RhKHDpCC9S3FvFySC + +### Ethereum +,* ETH: 0x927Ce74140713F116f457707bEA79a13B5E3e402 + +### LBRY Credits +,* LBC: bF81SN4eTv8Dwe6gceXo2KFJnmgagmgfDE + +### Litecoin +,* LTC: LUcsxrPxts6B5ULrEQuRgSjw3QvyJr72nR + +### Bitcoin Cash +,* BCH: 1GzzvT6WscYp88SeRUu7dhu4a4diiCt74v + +### Ethereum Classic +,* ETC: 0x784684E3aE290DFC3Cdd5c3f1B9a7f28C9fD0D7d + +### Dash +,* DASH: Xgprtj7t5En3YrTkycK2bVVicWu5H9zb3t +#+end_src +** HTML + +*** HTML header and stylesheet tangle + ++ Add CSS stylesheet ++ Add title + +#+begin_src html :tangle html/donate.html +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> +#+end_src + +*** Generate tangle block with HTML body from donate.gmi + +1. Start by tangling once to make updated source file donate.gmi available +2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle +3. Tabbing inside src block removes RESULT block + +#+begin_src bash :results raw :wrap src html \:tangle html/donate.html + +cat donate.gmi | gmi2html + +#+end_src + +#+RESULTS: +#+begin_src html :tangle html/donate.html +<h1>Crypto</h1> +<p><br/></p> +<h3>Monero</h3> +<ul> +<li>XMR: 4AqZR9mNJ3aTaAqhG7a6RoSZUQSsWPsSoN5GnHSMGrDXS54VnLtJkjsFpsBfn6jacjA42FELwasK6TLFrNVePWivVMgzh8i</li> +</ul> +<p><br/></p> +<h3>Bitcoin</h3> +<ul> +<li>BTC: 1L8fwzF4rUs1wc453RhKHDpCC9S3FvFySC</li> +</ul> +<p><br/></p> +<h3>Ethereum</h3> +<ul> +<li>ETH: 0x927Ce74140713F116f457707bEA79a13B5E3e402</li> +</ul> +<p><br/></p> +<h3>LBRY Credits</h3> +<ul> +<li>LBC: bF81SN4eTv8Dwe6gceXo2KFJnmgagmgfDE</li> +</ul> +<p><br/></p> +<h3>Litecoin</h3> +<ul> +<li>LTC: LUcsxrPxts6B5ULrEQuRgSjw3QvyJr72nR</li> +</ul> +<p><br/></p> +<h3>Bitcoin Cash</h3> +<ul> +<li>BCH: 1GzzvT6WscYp88SeRUu7dhu4a4diiCt74v</li> +</ul> +<p><br/></p> +<h3>Ethereum Classic</h3> +<ul> +<li>ETC: 0x784684E3aE290DFC3Cdd5c3f1B9a7f28C9fD0D7d</li> +</ul> +<p><br/></p> +<h3>Dash</h3> +<ul> +<li>DASH: Xgprtj7t5En3YrTkycK2bVVicWu5H9zb3t</li> +#+end_src + + +* referral.gmi + +** Gemini + +#+begin_src :tangle yes :tangle referral.gmi +# Referral links + +## Crypto.com +=> https://platinum.crypto.com/r/wuwdu28495 +When asked, enter referral code: wuwdu28495 + +## Linode +VPS and other cloud services, this page is hosted on Linode for $5/month +=> https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e + +## Odysee on LBRY protocol +=> https://odysse.com/$/invite/@Parklivspodden:7 +#+end_src + +** HTML + +*** HTML header and stylesheet tangle + ++ Add CSS stylesheet ++ Add title + +#+begin_src html :tangle html/referral.html +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> +#+end_src +*** Generate tangle block with HTML body from donate.gmi + +1. Start by tangling once to make updated source file referral.gmi available +2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle +3. Tabbing inside src block removes RESULT block + +#+begin_src bash :results raw :wrap src html \:tangle html/referral.html + +cat referral.gmi | gmi2html + +#+end_src + +#+RESULTS: +#+begin_src html :tangle html/referral.html +<h1>Referral links</h1> +<p><br/></p> +<h2>Crypto.com</h2> +<a style="display: block;" href="https://platinum.crypto.com/r/wuwdu28495">https://platinum.crypto.com/r/wuwdu28495</a> +<p>When asked, enter referral code: wuwdu28495</p> +<p><br/></p> +<h2>Linode</h2> +<p>VPS and other cloud services, this page is hosted on Linode for $5/month</p> +<a style="display: block;" href="https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e">https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e</a> +<p><br/></p> +<h2>Odysee on LBRY protocol</h2> +<a style="display: block;" href="https://odysse.com/$/invite/@Parklivspodden:7">https://odysse.com/$/invite/@Parklivspodden:7</a> +#+end_src diff --git a/html/donate.html b/html/donate.html @@ -0,0 +1,45 @@ +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> + +<h1>Crypto</h1> +<p><br/></p> +<h3>Monero</h3> +<ul> +<li>XMR: 4AqZR9mNJ3aTaAqhG7a6RoSZUQSsWPsSoN5GnHSMGrDXS54VnLtJkjsFpsBfn6jacjA42FELwasK6TLFrNVePWivVMgzh8i</li> +</ul> +<p><br/></p> +<h3>Bitcoin</h3> +<ul> +<li>BTC: 1L8fwzF4rUs1wc453RhKHDpCC9S3FvFySC</li> +</ul> +<p><br/></p> +<h3>Ethereum</h3> +<ul> +<li>ETH: 0x927Ce74140713F116f457707bEA79a13B5E3e402</li> +</ul> +<p><br/></p> +<h3>LBRY Credits</h3> +<ul> +<li>LBC: bF81SN4eTv8Dwe6gceXo2KFJnmgagmgfDE</li> +</ul> +<p><br/></p> +<h3>Litecoin</h3> +<ul> +<li>LTC: LUcsxrPxts6B5ULrEQuRgSjw3QvyJr72nR</li> +</ul> +<p><br/></p> +<h3>Bitcoin Cash</h3> +<ul> +<li>BCH: 1GzzvT6WscYp88SeRUu7dhu4a4diiCt74v</li> +</ul> +<p><br/></p> +<h3>Ethereum Classic</h3> +<ul> +<li>ETC: 0x784684E3aE290DFC3Cdd5c3f1B9a7f28C9fD0D7d</li> +</ul> +<p><br/></p> +<h3>Dash</h3> +<ul> +<li>DASH: Xgprtj7t5En3YrTkycK2bVVicWu5H9zb3t</li> diff --git a/html/index.html b/html/index.html @@ -0,0 +1,35 @@ +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> + +<pre> + $$\ + $$ | + $$$$$$\ $$$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ + \____$$\ $$ __$$\ $$ __$$ |$$ __$$\ $$ __$$\ $$ _____|$$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ | + $$$$$$$ |$$ | $$ |$$ / $$ |$$$$$$$$ |$$ | \__|\$$$$$$\ $$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ |$$ | $$ | +$$ __$$ |$$ | $$ |$$ | $$ |$$ ____|$$ | \____$$\ $$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ |$$ | $$ | +\$$$$$$$ |$$ | $$ |\$$$$$$$ |\$$$$$$$\ $$ | $$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$\ $$ | $$ |\$$$$$$ | + \_______|\__| \__| \_______| \_______|\__| \_______/ \______/ \__| \__| \______/ \__|\__| \__| \______/ + +</pre> +<h1>Welcome to andersuno.nu</h1> +<p><br/></p> +<h2>Links</h2> +<h3>Git</h3> +<a style="display: block;" href="http://git.andersuno.nu">My git repos</a> +<a style="display: block;" href="https://github.com/andersuno">My Github</a> +<p><br/></p> +<h3>Podcast</h3> +<a style="display: block;" href="https://odysee.com/@Parklivspodden:7">Parklivspodden on Odysee utilizing LBRY-protocol, Swedish podcast</a> +<p><br/></p> +<h3>QOTD Lampinismer</h3> +<p>ncat --recv-only qotd.andersuno.nu 1700</p> +<p>netcat -d qotd.andersuno.nu 1700</p> +<p>telnet qotd.andersuno.nu 1700</p> +<p><br/></p> +<h1>Support</h1> +<p><br/></p> +<a style="display: block;" href="http://andersuno.nu/referral.html">Referral links</a> +<a style="display: block;" href="http://andersuno.nu/donate.html">Donations</a> diff --git a/html/referral.html b/html/referral.html @@ -0,0 +1,17 @@ +<head> + <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" /> + <title>andersuno.nu</title> +</head> + +<h1>Referral links</h1> +<p><br/></p> +<h2>Crypto.com</h2> +<a style="display: block;" href="https://platinum.crypto.com/r/wuwdu28495">https://platinum.crypto.com/r/wuwdu28495</a> +<p>When asked, enter referral code: wuwdu28495</p> +<p><br/></p> +<h2>Linode</h2> +<p>VPS and other cloud services, this page is hosted on Linode for $5/month</p> +<a style="display: block;" href="https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e">https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e</a> +<p><br/></p> +<h2>Odysee on LBRY protocol</h2> +<a style="display: block;" href="https://odysse.com/$/invite/@Parklivspodden:7">https://odysse.com/$/invite/@Parklivspodden:7</a> diff --git a/html/style.css b/html/style.css @@ -0,0 +1,58 @@ +@import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); +@import url('https://fonts.googleapis.com/css?family=Roboto'); +@import url('https://fonts.googleapis.com/css?family=Anton'); + +body { + padding: 20px; + background-color: #282c34; + color: #dfdfdf; + font-family: "Roboto Mono"; + font-size: 14px; + line-height: 22px; + margin: 0 auto; + max-width: 960px; +} + +pre { + color: #ecbe7b; +} + +blockquote { + color: #ecbe7b; +} + +a { + color: #c678dd; + text-decoration: none; +} + +a:hover { + color: #51afef; +} + +h1 { + font-size: 20px; + color: #ff6c6b; + margin-bottom: 0px; +} + +h2 { + font-size: 18px; + color: #88ff88; + margin-bottom: 0px; +} + +h3, h4, h5, h6 { + font-size: 16px; + color: #51afef; + margin-bottom: 0px; +} + +li { + color: #98be65; +} + +p { + padding: 0px; + margin: 0px; +} diff --git a/index.gmi b/index.gmi @@ -1,17 +1,17 @@ ``` - $$\ - $$ | - $$$$$$\ $$$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ + $$\ + $$ | + $$$$$$\ $$$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ \____$$\ $$ __$$\ $$ __$$ |$$ __$$\ $$ __$$\ $$ _____|$$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ | $$$$$$$ |$$ | $$ |$$ / $$ |$$$$$$$$ |$$ | \__|\$$$$$$\ $$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ |$$ | $$ | $$ __$$ |$$ | $$ |$$ | $$ |$$ ____|$$ | \____$$\ $$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ |$$ | $$ | \$$$$$$$ |$$ | $$ |\$$$$$$$ |\$$$$$$$\ $$ | $$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$\ $$ | $$ |\$$$$$$ | - \_______|\__| \__| \_______| \_______|\__| \_______/ \______/ \__| \__| \______/ \__|\__| \__| \______/ + \_______|\__| \__| \_______| \_______|\__| \_______/ \______/ \__| \__| \______/ \__|\__| \__| \______/ ``` +# Welcome to andersuno.nu -# Links - +## Links ### Git => http://git.andersuno.nu My git repos => https://github.com/andersuno My Github @@ -25,5 +25,6 @@ netcat -d qotd.andersuno.nu 1700 telnet qotd.andersuno.nu 1700 # Support -=> gemini://andersuno.nu/refferal.gmi Refferal links + +=> gemini://andersuno.nu/referral.gmi Referral links => gemini://andersuno.nu/donate.gmi Donations diff --git a/referral.gmi b/referral.gmi @@ -0,0 +1,12 @@ +# Referral links + +## Crypto.com +=> https://platinum.crypto.com/r/wuwdu28495 +When asked, enter referral code: wuwdu28495 + +## Linode +VPS and other cloud services, this page is hosted on Linode for $5/month +=> https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e + +## Odysee on LBRY protocol +=> https://odysse.com/$/invite/@Parklivspodden:7 diff --git a/refferal.gmi b/refferal.gmi @@ -1,12 +0,0 @@ -# Refferal links - -## Crypto.com -=> https://platinum.crypto.com/r/wuwdu28495 -When asked, enter referral code: wuwdu28495 - -## Linode -VPS and other cloud services, this page is hosted on Linode for $5/month -=> https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e - -## Odysee on LBRY protocol -=> https://odysse.com/$/invite/@Parklivspodden:7