diff --git a/README.md b/README.md index 51bda5f..30790e0 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ tabi has a perfect score on Google's Lighthouse audit: - [X] Perfect Lighthouse score (Performance, Accessibility, Best Practices and SEO). - [X] [KaTeX](https://katex.org/) support. - [X] All JavaScript (theme switcher and KaTeX) can be fully disabled. +- [X] Stylized [feed](https://welpo.github.io/tabi/atom.xml). - [X] Responsive design. - [X] Projects page. - [X] Archive page. 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 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 '"' ) 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; } diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 499c982..1dc3929 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; } @@ -162,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 new file mode 100644 index 0000000..ab9c9a0 --- /dev/null +++ b/static/feed_style.xsl @@ -0,0 +1,71 @@ + + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> • Feed + + + + + + + +
+
+
+ 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

+
+
+ +
+
+ +
+
+ +
+ +
+ + + + + +
+
+
+
+
+
+ + +
+
diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..bba280b --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,48 @@ + + + + {{ 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 %} + 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 -%}
  • - atom/rss feed + feed
  • {%- endif -%}