From 72c5844db839e70868dbfde66c255cf4864278f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Aritz?= Date: Thu, 7 Dec 2023 22:06:59 +0100 Subject: [PATCH] Ready for production --- src/404.md | 14 +++++++++++ src/_includes/post.njk | 6 +++-- src/_includes/redirect.njk | 11 +++++++++ src/contact.md | 24 ++----------------- src/contacto.md | 1 - src/en/contact.md | 24 +++++++++++++++++++ src/index.md | 2 +- src/meta/archived.md | 2 +- src/meta/maintenance-tiers.md | 2 +- .../{updated-website.md => major-update.md} | 0 static/assets/css/base.css | 9 ++----- 11 files changed, 60 insertions(+), 35 deletions(-) create mode 100644 src/404.md create mode 100644 src/_includes/redirect.njk create mode 100644 src/en/contact.md rename src/weblog/2023/11/{updated-website.md => major-update.md} (100%) diff --git a/src/404.md b/src/404.md new file mode 100644 index 0000000..fb33477 --- /dev/null +++ b/src/404.md @@ -0,0 +1,14 @@ +--- +layout: base_page.njk +--- + +# not found + +The requested content was not found. + +If you have found a broken link, **please [contact me](/en/contact)**. The following information could be useful: +* Where did you find the broken link +* What is the broken link + + +Thank you :) \ No newline at end of file diff --git a/src/_includes/post.njk b/src/_includes/post.njk index b766a35..89fa1a0 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -26,8 +26,10 @@ styles: ["/assets/css/comments.css"] {% endfor %} | {% endif %} - {{ content | timeToRead }} | - Comments + {{ content | timeToRead }} + {% if comment_status %} + | Comments + {% endif %} diff --git a/src/_includes/redirect.njk b/src/_includes/redirect.njk new file mode 100644 index 0000000..739c324 --- /dev/null +++ b/src/_includes/redirect.njk @@ -0,0 +1,11 @@ +--- +layout: base_page.njk +--- + +{% if lang == "en" %} +

redirect

+

This page has been moved: {{ content | safe }}

+{% else %} +

redirección

+

Esta página ha sido movida: {{ content | safe }}

+{% endif %} \ No newline at end of file diff --git a/src/contact.md b/src/contact.md index dcb4671..9f3d370 100644 --- a/src/contact.md +++ b/src/contact.md @@ -1,25 +1,5 @@ --- -layout: base_page.njk -title: contact -permalink: /en/contact.html -lang: "en" +layout: redirect --- -# contact - -### direct contact - -* E-mail: [sofi@sofiaritz.com](mailto:sofi@sofiaritz.com) -* Matrix: [@sofiaritz:matrix.org](https://matrix.to/#/@sofiaritz:matrix.org) - -### social media - -* Forgejo: [sofia@git.sofiaritz.com](https://git.sofiaritz.com/sofia) -* Fediverse: [@me@sofiaritz.com](https://hachyderm.io/@sofiaritz) (@sofiaritz@hachyderm.io) - -### encryption and signing - -You can find my public PGP key at [/keys/pub.asc](/keys/pub.asc), it's also available at the -[Ubuntu keyservers](https://keyserver.ubuntu.com/). - -The fingerprint of the cert is: `4BB1 6A74 5DE1 C776 5CF3 8788 90B5 116E 3542 B28F`. \ No newline at end of file +[/contacto](/contacto) \ No newline at end of file diff --git a/src/contacto.md b/src/contacto.md index e36d893..5c4fdb1 100644 --- a/src/contacto.md +++ b/src/contacto.md @@ -1,7 +1,6 @@ --- layout: base_page.njk title: contacto -permalink: /contact.html --- # contacto diff --git a/src/en/contact.md b/src/en/contact.md new file mode 100644 index 0000000..4ad82dc --- /dev/null +++ b/src/en/contact.md @@ -0,0 +1,24 @@ +--- +layout: base_page.njk +title: contact +lang: "en" +--- + +# contact + +### direct contact + +* E-mail: [sofi@sofiaritz.com](mailto:sofi@sofiaritz.com) +* Matrix: [@sofiaritz:matrix.org](https://matrix.to/#/@sofiaritz:matrix.org) + +### social media + +* Forgejo: [sofia@git.sofiaritz.com](https://git.sofiaritz.com/sofia) +* Fediverse: [@me@sofiaritz.com](https://hachyderm.io/@sofiaritz) (@sofiaritz@hachyderm.io) + +### encryption and signing + +You can find my public PGP key at [/keys/pub.asc](/keys/pub.asc), it's also available at the +[Ubuntu keyservers](https://keyserver.ubuntu.com/). + +The fingerprint of the cert is: `4BB1 6A74 5DE1 C776 5CF3 8788 90B5 116E 3542 B28F`. \ No newline at end of file diff --git a/src/index.md b/src/index.md index dbf0dce..d43a5e4 100644 --- a/src/index.md +++ b/src/index.md @@ -19,6 +19,6 @@ las [lenguas construidas](https://es.wikipedia.org/wiki/Lengua_construida) y el [Toki Pona](https://es.wikipedia.org/wiki/Toki_pona). En lo que respecta a las tecnologías que suelo manejar, todo depende del proyecto y sus especificaciones, pero tiendo -a centrarme en [Rust](https://es.wikipedia.org/wiki/Rust_(lenguaje_de_programaci%C3%B3n)) o [Zig](https://ziglang.org/) +a centrarme en [Rust](https://es.wikipedia.org/wiki/Rust_(lenguaje_de_programaci%C3%B3n)), [Zig](https://ziglang.org/) y [JavaScript](https://es.wikipedia.org/wiki/JavaScript). Este es un indicador muy simple, pues cada lenguaje tiene distintas ramificaciones, pero esta página de inicio no es el lugar para detallar el uso que le doy a cada uno. diff --git a/src/meta/archived.md b/src/meta/archived.md index efd05d4..6a8c499 100644 --- a/src/meta/archived.md +++ b/src/meta/archived.md @@ -12,4 +12,4 @@ Archived pages _could_ contain the following problems: * Their content is not accurate. * They do not represent my current views or opinions. * They contain broken links, images, etc. - * If you find any of these, [contact me](/contacto), and I'll do my best to fix it. \ No newline at end of file + * If you find something broken, [contact me](/contact), and I'll do my best to fix it. \ No newline at end of file diff --git a/src/meta/maintenance-tiers.md b/src/meta/maintenance-tiers.md index f180ee1..b30dd36 100644 --- a/src/meta/maintenance-tiers.md +++ b/src/meta/maintenance-tiers.md @@ -34,7 +34,7 @@ any deviation from this page _should_ be documented in the project itself. * The response time to issues and pull requests _can_ be worse. * Pull requests related to new features _will_ be rejected. * I will not work on any non-security issues, but will review and merge pull requests. -* Anyone can become a maintainer after [contacting me](/contacto). +* Anyone can become a maintainer after [contacting me](/contact). ## deprecated diff --git a/src/weblog/2023/11/updated-website.md b/src/weblog/2023/11/major-update.md similarity index 100% rename from src/weblog/2023/11/updated-website.md rename to src/weblog/2023/11/major-update.md diff --git a/static/assets/css/base.css b/static/assets/css/base.css index d020b97..874ffbd 100644 --- a/static/assets/css/base.css +++ b/static/assets/css/base.css @@ -56,15 +56,10 @@ main { justify-content: center; } -@media only screen and (max-width: 1600px) { - :root { - background-repeat: repeat-y; - } -} - @media only screen and (max-width: 900px) { .page-container { - display: block; + display: flex; + flex-direction: column-reverse; width: 100%; }