diff options
| author | alex <alex@pdp7.net> | 2026-09-18 16:56:54 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-09-18 17:40:18 +0200 |
| commit | 6c1c5a58a59682ec8c765c81f14881d9ccf95d60 (patch) | |
| tree | 1550bc20e105d8ff05c5e75fbdd0c847814bc247 | |
| parent | c939bc7657c4a5cbaad9ee9be6f1f86d2f3f1dd9 (diff) | |
Add full contact pages
| -rwxr-xr-x | blog/build.sh | 2 | ||||
| -rw-r--r-- | blog/content/contact.gmi | 6 | ||||
| -rw-r--r-- | blog/content/contacto.gmi | 6 | ||||
| -rwxr-xr-x | blog/footers.py | 11 |
4 files changed, 20 insertions, 5 deletions
diff --git a/blog/build.sh b/blog/build.sh index 845845f7..bfad6400 100755 --- a/blog/build.sh +++ b/blog/build.sh @@ -18,7 +18,7 @@ cat >index.gmi <<EOF # El blog es mío ## Hay otros como él, pero este es el mío -Envíame email a alex arroba corcoles punto net. +=> /contacto Contacta conmigo. => notas/ Notas => notes/ Notes diff --git a/blog/content/contact.gmi b/blog/content/contact.gmi new file mode 100644 index 00000000..8b06813d --- /dev/null +++ b/blog/content/contact.gmi @@ -0,0 +1,6 @@ +# Contact + +Send me email to alex at corcoles dot net. +=> https://i.delta.chat/#F39B6A2BB323992DB8B897D2B3AD081B56A5FAC6&a=vmupyibe9%40nine.testrun.org&n=Alex2&i=84tOryYQa6e-2qD75_LE5X-r&s=JlQQAedymqJC8rwkSaMC4oa7 Send me a message with Delta Chat +=> https://alex.femto.pub/@coder@alex.femto.pub/ Read me in the Fediverse at @coder@alex.femto.pub +Send me a message with XMPP/Jabber to koalillo at conversations dot im. diff --git a/blog/content/contacto.gmi b/blog/content/contacto.gmi new file mode 100644 index 00000000..a074738d --- /dev/null +++ b/blog/content/contacto.gmi @@ -0,0 +1,6 @@ +# Contacto + +Envíame email a alex arroba corcoles punto net. +=> https://i.delta.chat/#F39B6A2BB323992DB8B897D2B3AD081B56A5FAC6&a=vmupyibe9%40nine.testrun.org&n=Alex2&i=84tOryYQa6e-2qD75_LE5X-r&s=JlQQAedymqJC8rwkSaMC4oa7 Envíame un mensaje por Delta Chat. +=> https://alex.femto.pub/@yo@alex.femto.pub/ Léeme en el Fediverso en @yo@alex.femto.pub +Envíame un mensaje por XMPP/Jabber a koalillo arroba conversations punto im diff --git a/blog/footers.py b/blog/footers.py index 49932f1d..ca0977ae 100755 --- a/blog/footers.py +++ b/blog/footers.py @@ -8,8 +8,8 @@ content = pathlib.Path(sys.argv[1]) print("Generating footers...") CONTACT = { - "es": "Envíame email a alex arroba corcoles punto net.", - "en": "Send me email at alex at corcoles dot net.", + "es": "=> {relative_root}/contacto Contacta conmigo.", + "en": "=> {relative_root}/contact Contact me.", } EDIT_IN_GITHUB = { @@ -22,7 +22,7 @@ PARENT = { "en": "Go to parent." } -ENGLISH_PAGES = ('about.gmi', 'gemini.gmi',) +ENGLISH_PAGES = ('about.gmi', 'gemini.gmi', "contact.gmi",) content_gmi_files = [str(p.relative_to(content)) for p in pathlib.Path(content).glob("**/*.gmi")] @@ -36,7 +36,10 @@ for gmi in pathlib.Path.cwd().glob("**/*.gmi"): footer = [] - footer.append(CONTACT[language]) + relative_root = "/".join([".."] * (len(gmi.parts) - len(pathlib.Path.cwd().parts) - 1)) + + if relative_gmi not in ("contact.gmi", "contacto.gmi"): + footer.append(CONTACT[language].format(relative_root=relative_root)) content_source = None if relative_gmi in content_gmi_files: |
