From 41c44d3d842a2c8d9ef5b7b2dd94c831f356ed5b Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 23 Jun 2023 01:50:44 +0200 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=93=9D=20docs:=20remove=20atom=20fe?= =?UTF-8?q?ed=20filter=20in=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/blog/custom-font-subset.ca.md | 4 ++-- content/blog/custom-font-subset.es.md | 4 ++-- content/blog/custom-font-subset.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/blog/custom-font-subset.ca.md b/content/blog/custom-font-subset.ca.md index 1faa9c2..35d76d4 100644 --- a/content/blog/custom-font-subset.ca.md +++ b/content/blog/custom-font-subset.ca.md @@ -1,7 +1,7 @@ +++ title = "Optimitza la càrrega amb un subconjunt de font personalitzat" date = 2023-04-29 -updated = 2023-05-25 +updated = 2023-06-22 description = "Aprèn com crear un subconjunt personalitzat que només inclogui els glifs necessaris." [taxonomies] @@ -102,7 +102,7 @@ if [ ! -f "$font_file" ]; then fi # Extreu el títol i els noms del menú del fitxer de configuració. -title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"' | grep -v "atom feed") +title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"') menu_names=$(awk -F' = ' '/^menu/{f=1;next} /socials/{f=0} f && /name/{print $2}' "$config_file" | cut -d',' -f1 | tr -d '"' ) language_names=$(awk -F' = ' '/^language_name\./{print $2}' "$config_file" | tr -d '"' ) diff --git a/content/blog/custom-font-subset.es.md b/content/blog/custom-font-subset.es.md index 1ea23f4..6ac6663 100644 --- a/content/blog/custom-font-subset.es.md +++ b/content/blog/custom-font-subset.es.md @@ -1,7 +1,7 @@ +++ title = "Optimiza la carga con un subconjunto de fuente personalizado" date = 2023-04-29 -updated = 2023-05-25 +updated = 2023-06-22 description = "Aprende cómo crear un subconjunto personalizado que solo incluya los glifos necesarios." [taxonomies] @@ -102,7 +102,7 @@ if [ ! -f "$font_file" ]; then fi # Extrae el título y los nombres de los menús del archivo de configuración. -title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"' | grep -v "atom feed") +title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"') menu_names=$(awk -F' = ' '/^menu/{f=1;next} /socials/{f=0} f && /name/{print $2}' "$config_file" | cut -d',' -f1 | tr -d '"' ) language_names=$(awk -F' = ' '/^language_name\./{print $2}' "$config_file" | tr -d '"' ) diff --git a/content/blog/custom-font-subset.md b/content/blog/custom-font-subset.md index f7f7f79..55a6a86 100644 --- a/content/blog/custom-font-subset.md +++ b/content/blog/custom-font-subset.md @@ -1,7 +1,7 @@ +++ title = "Optimise loading times with a custom font subset" date = 2023-04-29 -updated = 2023-05-25 +updated = 2023-06-22 description = "Learn how to create a custom subset that only includes the necessary glyphs." [taxonomies] @@ -102,7 +102,7 @@ if [ ! -f "$font_file" ]; then fi # Extract the title and menu names from the config file. -title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"' | grep -v "atom feed") +title=$(awk -F' = ' '/^title/{print $2}' "$config_file" | tr -d '"') menu_names=$(awk -F' = ' '/^menu/{f=1;next} /socials/{f=0} f && /name/{print $2}' "$config_file" | cut -d',' -f1 | tr -d '"' ) language_names=$(awk -F' = ' '/^language_name\./{print $2}' "$config_file" | tr -d '"' ) From 0b02e727e0ed21c1e1a8ac9ee45229a78339d361 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 23 Jun 2023 01:51:17 +0200 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=92=84=20style:=20rename=20"atom/rs?= =?UTF-8?q?s=20feed"=20to=20"feed"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/partials/footer.html b/templates/partials/footer.html index f731126..fa97d9e 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -6,7 +6,7 @@ {%- if config.generate_feed and config.extra.feed_icon -%}
  • {%- endif -%} From f9d8f3668f0a268ea1799f43ee56a6a2176380de Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 23 Jun 2023 17:24:15 +0200 Subject: [PATCH 03/13] =?UTF-8?q?=F0=9F=93=9D=20docs:=20add=20default=20au?= =?UTF-8?q?thor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config.toml b/config.toml index 718bdfc..1fff6c5 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ base_url = "https://welpo.github.io/tabi" title = "~/tabi" description = "tabi is a fast, lightweight, and modern Zola theme with multi-language support, optional JavaScript, and a perfect Lighthouse score." +author = "welpo" generate_feed = true compile_sass = true minify_html = true From 54e88beca21976a350ce6babd9fe10b07d658cf4 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 23 Jun 2023 17:26:09 +0200 Subject: [PATCH 04/13] =?UTF-8?q?=E2=9C=A8=20feat:=20use=20page=20descript?= =?UTF-8?q?ion=20as=20summary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If neither page description or summary are available, only the post title will be shown. --- templates/atom.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 templates/atom.xml diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..c45dafd --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,50 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} {{ config.description }} {%- endif %} + + Zola + {{ last_updated | date(format="%+") + }} + {{ feed_url | safe }} {%- for page in pages %} + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ + page.updated | default(value=page.date) | date(format="%+") }} + + + {%- if page.authors -%} + {{ page.authors[0] }} + {%- elif config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} + + + + {{ + page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% elif page.description %} + {{ page.description }} + {% endif %} + + {%- endfor %} + From e3bd75e9e384d03b070bb8bdab3c42aef645ad23 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 00:30:05 +0200 Subject: [PATCH 05/13] =?UTF-8?q?=F0=9F=8E=A8=20refactor:=20restructure=20?= =?UTF-8?q?template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/atom.xml | 61 ++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index c45dafd..6402128 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,50 +1,47 @@ {{ config.title }} - {%- if term %} - {{ term.name }} - {%- elif section.title %} - {{ section.title }} - {%- endif -%} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} - {%- if config.description %} {{ config.description }} {%- endif %} - + - Zola - {{ last_updated | date(format="%+") - }} - {{ feed_url | safe }} {%- for page in pages %} + "/> + Zola + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + {{ page.title }} {{ page.date | date(format="%+") }} - {{ - page.updated | default(value=page.date) | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} - {%- if page.authors -%} - {{ page.authors[0] }} - {%- elif config.author -%} - {{ config.author }} - {%- else -%} - Unknown - {%- endif -%} + {%- if page.authors -%} + {{ page.authors[0] }} + {%- elif config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} - - {{ - page.permalink | safe }} - {% if page.summary %} - {{ page.summary }} - {% elif page.description %} - {{ page.description }} - {% endif %} + + {{ page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% elif page.description %} + {{ page.description }} + {% endif %} {%- endfor %} From 4df7cdcb7a06ce6ace7463d727e7719a4d9d8c13 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 03:03:55 +0200 Subject: [PATCH 06/13] =?UTF-8?q?=F0=9F=90=9B=20fix:=20set=20svg=20max-hei?= =?UTF-8?q?ght=20only=20for=20social=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_footer.scss | 4 ++++ sass/parts/_image.scss | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sass/parts/_footer.scss b/sass/parts/_footer.scss index 87cc771..3ec1900 100644 --- a/sass/parts/_footer.scss +++ b/sass/parts/_footer.scss @@ -23,6 +23,10 @@ footer nav { flex-wrap: wrap; align-items: flex-end; + svg { + max-height: 15px; + } + ul { gap: 5px; } diff --git a/sass/parts/_image.scss b/sass/parts/_image.scss index 90017fa..e36acf2 100644 --- a/sass/parts/_image.scss +++ b/sass/parts/_image.scss @@ -34,10 +34,6 @@ figure h4::before { content: "↳ "; } -svg { - max-height: 15px; -} - .img-dark { display: none; } From 36930dc8174966e2dd718f039307f3412454d486 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 03:05:41 +0200 Subject: [PATCH 07/13] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20`padding-to?= =?UTF-8?q?p`=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_misc.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 499c982..10a7f63 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -33,6 +33,10 @@ ul { margin-bottom: 4vmin; } +.padding-top { + padding-top: 4vmin; +} + .title-container { padding-bottom: 15px; } From 1b60be8c9d4e28645e713672eeb1b9dbdf4e1789 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 03:06:54 +0200 Subject: [PATCH 08/13] =?UTF-8?q?=F0=9F=9A=A7=20feat:=20style=20xml=20feed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/feed_style.xsl | 105 ++++++++++++++++++++++++++++++++++++++++++ templates/atom.xml | 9 ++-- 2 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 static/feed_style.xsl diff --git a/static/feed_style.xsl b/static/feed_style.xsl new file mode 100644 index 0000000..d1d72a0 --- /dev/null +++ b/static/feed_style.xsl @@ -0,0 +1,105 @@ + + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> + + + + + + + +
    +
    + + This is an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It’s free. + + + +
    + Recent Posts +
    +
    + +
    +
    + +
    +
    + +
    + +
    + + + + + +
    +
    +
    +
    +
    +
    + + +
    +
    diff --git a/templates/atom.xml b/templates/atom.xml index 6402128..276cc0a 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,5 +1,8 @@ - - + + + {{ config.title }} {%- if term %} - {{ term.name }} {%- elif section.title %} - {{ section.title }} @@ -13,7 +16,7 @@ {%- if section -%} {{ section.permalink | escape_xml | safe }} {%- else -%} - {{ config.base_url | escape_xml | safe }} + {{ get_url(path="/", lang=lang) | escape_xml | safe }} {%- endif -%} "/> <generator uri="https://www.getzola.org/">Zola</generator> From 16f1aa57fa908a44861990cf9ff40ecc5e8ffb4e Mon Sep 17 00:00:00 2001 From: welpo <welpo@users.noreply.github.com> Date: Sat, 24 Jun 2023 03:10:41 +0200 Subject: [PATCH 09/13] =?UTF-8?q?=F0=9F=94=A5=20refactor:=20remove=20Yahoo?= =?UTF-8?q?=20Media=20RSS=20reference?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/atom.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index 276cc0a..bba280b 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet href="/feed_style.xsl" type="text/xsl"?> -<feed xmlns="http://www.w3.org/2005/Atom" - xmlns:media="http://search.yahoo.com/mrss/" - xml:lang="{{ lang }}"> +<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> <title>{{ config.title }} {%- if term %} - {{ term.name }} {%- elif section.title %} - {{ section.title }} From fc591f549c9f5ebbee20f9c6273da27bed603fd2 Mon Sep 17 00:00:00 2001 From: welpo <welpo@users.noreply.github.com> Date: Sun, 25 Jun 2023 22:59:29 +0200 Subject: [PATCH 10/13] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20title=20suf?= =?UTF-8?q?fix=20&=20reduce=20RSS=20icon=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/feed_style.xsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/feed_style.xsl b/static/feed_style.xsl index d1d72a0..cadd154 100644 --- a/static/feed_style.xsl +++ b/static/feed_style.xsl @@ -6,7 +6,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title> - <xsl:value-of select="/atom:feed/atom:title"/> + <xsl:value-of select="/atom:feed/atom:title"/> • Feed @@ -24,7 +24,7 @@ Date: Mon, 26 Jun 2023 02:12:49 +0200 Subject: [PATCH 11/13] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20styling=20t?= =?UTF-8?q?o=20infobox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_misc.scss | 11 +++++++++++ static/feed_style.xsl | 42 ++++-------------------------------------- 2 files changed, 15 insertions(+), 38 deletions(-) diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 10a7f63..1dc3929 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -166,3 +166,14 @@ table tbody tr:nth-child(even) { text-indent: -2.4rem; margin-left: 2.4rem; } + +.info-box { + border: 1px solid #087E96; + border-left-width: 0.3rem; + background-color: #d1f3f8; + padding: 1rem; + margin-top: 1rem; + margin-bottom: 1rem; + border-radius: 10px; + text-align: center; +} diff --git a/static/feed_style.xsl b/static/feed_style.xsl index cadd154..875a3f5 100644 --- a/static/feed_style.xsl +++ b/static/feed_style.xsl @@ -16,46 +16,12 @@
    - - This is an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It’s free. - +
    + This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It’s free. +
    -
    - Recent Posts +
    +

    Recent Posts