From 41c44d3d842a2c8d9ef5b7b2dd94c831f356ed5b Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 23 Jun 2023 01:50:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20remove=20atom=20feed=20f?= =?UTF-8?q?ilter=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 '"' )