mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
Merge github.com:jerusdp/tabi into webmentions
This commit is contained in:
commit
6c6996b888
18 changed files with 169 additions and 22 deletions
|
@ -1,7 +1,7 @@
|
|||
+++
|
||||
title = "Domina la configuració de tabi: guia completa"
|
||||
date = 2023-09-18
|
||||
updated = 2025-02-02
|
||||
updated = 2025-02-11
|
||||
description = "Descobreix les múltiples maneres en què pots personalitzar tabi."
|
||||
|
||||
[taxonomies]
|
||||
|
@ -172,13 +172,16 @@ pinned = true
|
|||
{{ admonition(type="warning", text='Quan s'utilitza la paginació (`paginate_by`), les entrades fixades poden aparèixer dues vegades: una vegada a la part superior de la primera pàgina, i una altra en la seva posició cronològica normal en pàgines posteriors.') }}
|
||||
|
||||
##### Mostrar la data dels articles al llistat
|
||||
|
||||
Per defecte, quan es llisten els articles, es mostra la data de creació. Pots configurar quina(es) data(es) mostrar utilitzant l'opció `post_listing_date`. Configuracions disponibles:
|
||||
|
||||
- `date`: Mostra només la data de publicació original de l'article (opció per defecte).
|
||||
- `updated`: Mostra només la data de l'última actualització de l'article. Si no hi ha data d'actualització, es mostra la data de publicació original.
|
||||
- `both`: Mostra tant la data de publicació original com la data de l'última actualització.
|
||||
|
||||
{% admonition(type="tip") %}
|
||||
Aquesta configuració segueix la jerarquia: pots establir un valor global a `config.toml` o canviar-lo per a seccions específiques al seu arxiu `_index.md`. En ambdós casos, afegeix-lo a la secció `[extra]`.
|
||||
{% end %}
|
||||
|
||||
#### Llistat de Projectes
|
||||
|
||||
Pots mostrar una selecció de projectes a la teva pàgina principal. Per fer això, primer necessitaràs configurar el directori `projects`.
|
||||
|
@ -438,10 +441,14 @@ Per defecte, l'arxiu llistarà les publicacions situades a `blog/`. Per personal
|
|||
section_path = ["blog/", "notes/", "camí-tres/"]
|
||||
```
|
||||
|
||||
**Nota**:
|
||||
L'arxiu mostra les publicacions en ordre cronològic invers (les més recents primer). Pots invertir aquest ordre establint `archive_reverse = true` a la secció `[extra]`:
|
||||
|
||||
- La pàgina d'arxiu només llistarà publicacions amb data.
|
||||
- L'ordre de les publicacions ve determinada per la variable `sort_by` de les seccions arxivades. Aquesta demo utilitza `sort_by = "date"` en `blog/_index.md`.
|
||||
```toml
|
||||
[extra]
|
||||
archive_reverse = true # mostra les publicacions més antigues primer
|
||||
```
|
||||
|
||||
{{ admonition(type="note", title="nota" text="La pàgina d'arxiu només llistarà publicacions que tinguin data al seu encapçalament.") }}
|
||||
|
||||
### Etiquetes
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
+++
|
||||
title = "Domina la configuración de tabi: guía completa"
|
||||
date = 2023-09-18
|
||||
updated = 2025-02-02
|
||||
updated = 2025-02-11
|
||||
description = "Descubre las múltiples maneras en que puedes personalizar tabi."
|
||||
|
||||
[taxonomies]
|
||||
|
@ -179,6 +179,10 @@ Por defecto, cuando se listan los artículos, se muestra la fecha de creación.
|
|||
- `updated`: Muestra solo la fecha de la última actualización del artículo. Si no hay fecha de actualización, muestra la fecha de publicación original.
|
||||
- `both`: Muestra tanto la fecha de publicación original como la fecha de la última actualización.
|
||||
|
||||
{% admonition(type="tip") %}
|
||||
Esta configuración sigue la jerarquía: puedes establecer un valor global en `config.toml` o configurarlo para secciones específicas en su archivo `_index.md`. En ambos casos, añádelo a la sección `[extra]`.
|
||||
{% end %}
|
||||
|
||||
#### Listado de proyectos
|
||||
|
||||
Puedes mostrar una selección de proyectos en tu página principal. Para hacer esto, primero necesitarás configurar el directorio `projects`.
|
||||
|
@ -438,10 +442,14 @@ Por defecto, el archivo mostrará las publicaciones ubicadas en `blog/`. Para pe
|
|||
section_path = ["blog/", "notas/", "ruta-tres/"]
|
||||
```
|
||||
|
||||
**Nota**:
|
||||
El archivo muestra las publicaciones en orden cronológico inverso (las más recientes primero). Puedes invertir este orden estableciendo `archive_reverse = true` en la sección `[extra]`:
|
||||
|
||||
- La página de Archivo sólo listará publicaciones con fecha.
|
||||
- El orden las publicaciones viene determinada por la variable `sort_by` de las secciones archivadas. Esta demo utiliza `sort_by = "date"` en `blog/_index.md`.
|
||||
```toml
|
||||
[extra]
|
||||
archive_reverse = true # muestra las publicaciones más antiguas primero
|
||||
```
|
||||
|
||||
{{ admonition(type="note", title="nota" text="La página de Archivo sólo listará publicaciones que tengan fecha en su encabezado.") }}
|
||||
|
||||
### Etiquetas
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title = "Mastering tabi Settings: A Comprehensive Guide"
|
||||
date = 2023-09-18
|
||||
updated = 2025-02-11
|
||||
updated = 2025-02-11
|
||||
description = "Discover the many ways you can customise your tabi site."
|
||||
|
||||
[taxonomies]
|
||||
|
@ -183,6 +184,10 @@ By default, when listing posts, the date of post creation is shown. You can conf
|
|||
post_listing_date = "date"
|
||||
```
|
||||
|
||||
{% admonition(type="tip") %}
|
||||
This setting follows the hierarchy: you can set a global value in `config.toml` or override it for specific sections in their `_index.md` file. In both cases, add it to the `[extra]` section.
|
||||
{% end %}
|
||||
|
||||
#### Listing Projects
|
||||
|
||||
You can showcase a selection of projects on your main page. To do this, you'll need to set up the `projects` directory first.
|
||||
|
@ -443,10 +448,14 @@ By default, the archive will list posts located in `blog/`. To customise this, y
|
|||
section_path = ["blog/", "notes/", "path-three/"]
|
||||
```
|
||||
|
||||
**Notes**:
|
||||
The archive displays posts in reverse chronological order (newest first). You can reverse this order by setting `archive_reverse = true` in the `[extra]` section:
|
||||
|
||||
- the Archive page will only list posts that have a date in their front matter.
|
||||
- Post sorting is determined by the `sort_by` variable of the sections you are archiving. This demo uses `sort_by = "date"` set in the `blog/_index.md`.
|
||||
```toml
|
||||
[extra]
|
||||
archive_reverse = true # displays oldest posts first.
|
||||
```
|
||||
|
||||
{{ admonition(type="note", text="The Archive page will only list posts that have a date in their front matter.") }}
|
||||
|
||||
### Tags
|
||||
|
||||
|
|
35
content/projects/nemui/index.ca.md
Normal file
35
content/projects/nemui/index.ca.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
+++
|
||||
title = "nemui"
|
||||
description = "Ajusta gradualment el teu horari de son amb suport per horari d'estiu."
|
||||
weight = 22
|
||||
|
||||
[taxonomies]
|
||||
tags = ["son", "interactiu", "web app", "web", "JavaScript"]
|
||||
|
||||
[extra]
|
||||
local_image = "projects/nemui/nemui_logo.webp"
|
||||
canonical_url = "https://osc.garden/ca/projects/tabi/"
|
||||
social_media_card = "social_cards/projects_nemui.jpg"
|
||||
+++
|
||||
|
||||
nemui és una aplicació web que t'ajuda a fer una transició suau a un nou horari de son. El seu nom ve de les paraules japoneses per dormir (<ruby>眠<rt>nemu</rt></ruby>) i transició (<ruby>移<rt>i</rt></ruby>), que es llegeix com <ruby>眠い<rt>nemui</rt></ruby> (somnolent).
|
||||
|
||||
#### [Prova-la ara](https://nemui.osc.garden) • [GitHub](https://github.com/welpo/nemui) • [Blog](https://osc.garden/ca/blog/nemui-sleep-schedule-planner/) {.centered-text}
|
||||
|
||||
## Característiques
|
||||
|
||||
- Interfície interactiva de rellotge inspirada en Apple
|
||||
- Ajust gradual de l'horari de son basat en la ciència del son
|
||||
- Suport complet per a l'horari d'estiu (DST)
|
||||
- Exportació a calendari (.ics) amb recordatoris per anar a dormir
|
||||
- Emmagatzematge local per seguir el teu progrés
|
||||
- Accessible: compatible amb navegació per teclat i lectors de pantalla
|
||||
|
||||
## Per què nemui?
|
||||
|
||||
A diferència dels canvis bruscos que poden alterar el teu ritme circadià, nemui t'ajuda a ajustar el teu horari de son de manera gradual. És especialment útil per a:
|
||||
|
||||
- Adaptar-te a nous horaris de feina/estudi
|
||||
- Preparar-te per a canvis de zona horària
|
||||
- Fer una transició suau durant els canvis d'hora
|
||||
- Corregir un horari de son desajustat
|
35
content/projects/nemui/index.es.md
Normal file
35
content/projects/nemui/index.es.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
+++
|
||||
title = "nemui"
|
||||
description = "Ajusta gradualmente tu horario de sueño con soporte para horario de verano."
|
||||
weight = 32
|
||||
|
||||
[taxonomies]
|
||||
tags = ["sueño", "interactivo", "web app", "web", "JavaScript"]
|
||||
|
||||
[extra]
|
||||
local_image = "projects/nemui/nemui_logo.webp"
|
||||
canonical_url = "https://osc.garden/es/projects/tabi/"
|
||||
social_media_card = "social_cards/projects_nemui.jpg"
|
||||
+++
|
||||
|
||||
nemui es una aplicación web que te ayuda a hacer una transición suave a un nuevo horario de sueño. Su nombre viene de las palabras japonesas para dormir (<ruby>眠<rt>nemu</rt></ruby>) y transición (<ruby>移<rt>i</rt></ruby>), que se lee como <ruby>眠い<rt>nemui</rt></ruby> (somnoliento).
|
||||
|
||||
#### [Pruébala ahora](https://nemui.osc.garden) • [GitHub](https://github.com/welpo/nemui) • [Blog](https://osc.garden/es/blog/nemui-sleep-schedule-planner/) {.centered-text}
|
||||
|
||||
## Características
|
||||
|
||||
- Interfaz interactiva de reloj inspirada en Apple
|
||||
- Ajuste gradual del horario de sueño basado en la ciencia del sueño
|
||||
- Soporte completo para el horario de verano (DST)
|
||||
- Exportación a calendario (.ics) con recordatorios para dormir
|
||||
- Almacenamiento local para seguir tu progreso
|
||||
- Accesible: compatible con navegación por teclado y lectores de pantalla
|
||||
|
||||
## ¿Por qué nemui?
|
||||
|
||||
A diferencia de los cambios bruscos que pueden alterar tu ritmo circadiano, nemui te ayuda a ajustar tu horario de sueño de forma gradual. Es especialmente útil para:
|
||||
|
||||
- Adaptarte a nuevos horarios de trabajo/estudio
|
||||
- Prepararte para cambios de zona horaria
|
||||
- Hacer una transición suave durante los cambios de hora
|
||||
- Corregir un horario de sueño desajustado
|
35
content/projects/nemui/index.md
Normal file
35
content/projects/nemui/index.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
+++
|
||||
title = "nemui"
|
||||
description = "Gradually adjust your sleep schedule with support for DST transitions."
|
||||
weight = 32
|
||||
|
||||
[taxonomies]
|
||||
tags = ["sleep", "interactive", "web app", "web", "JavaScript"]
|
||||
|
||||
[extra]
|
||||
local_image = "projects/nemui/nemui_logo.webp"
|
||||
canonical_url = "https://osc.garden/projects/tabi/"
|
||||
social_media_card = "social_cards/projects_nemui.jpg"
|
||||
+++
|
||||
|
||||
nemui is a web app that helps you smoothly transition to a new sleep schedule. Named after the Japanese words for sleep (<ruby>眠<rt>nemu</rt></ruby>) and transition (<ruby>移<rt>i</rt></ruby>), reading as <ruby>眠い<rt>nemui</rt></ruby> (sleepy).
|
||||
|
||||
#### [Try it now](https://nemui.osc.garden) • [GitHub](https://github.com/welpo/nemui) • [Blog post](https://osc.garden/blog/nemui-sleep-schedule-planner/) {.centered-text}
|
||||
|
||||
## Features
|
||||
|
||||
- Interactive clock interface inspired by Apple
|
||||
- Gradual sleep schedule adjustment based on sleep science
|
||||
- Full Daylight Saving Time (DST) support
|
||||
- Calendar (.ics) export with bedtime reminders
|
||||
- Local storage for progress tracking
|
||||
- Accessible: supports keyboard navigation and screen readers
|
||||
|
||||
## Why nemui?
|
||||
|
||||
Unlike abrupt changes that can disrupt your circadian rhythm, nemui helps you adjust your sleep schedule gradually. It's particularly useful for:
|
||||
|
||||
- Adapting to new work/study schedules
|
||||
- Preparing for timezone changes
|
||||
- Smoothly transitioning through DST changes
|
||||
- Fixing a misaligned sleep schedule
|
BIN
content/projects/nemui/nemui_logo.webp
Normal file
BIN
content/projects/nemui/nemui_logo.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
content/projects/nemui/social_cards/projects_nemui.jpg
Normal file
BIN
content/projects/nemui/social_cards/projects_nemui.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ラム (ramu)"
|
||||
title = "ramu"
|
||||
description = "Una aplicació web per practicar la lectura i comprensió auditiva de nombres en japonès."
|
||||
weight = 35
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ラム (ramu)"
|
||||
title = "ramu"
|
||||
description = "Una aplicación web para practicar la lectura y comprensión auditiva de números en japonés."
|
||||
weight = 35
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ラム (ramu)"
|
||||
title = "ramu"
|
||||
description = "A web app to practice reading and listening to Japanese numbers."
|
||||
weight = 35
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ずつ (zutsu)"
|
||||
title = "zutsu"
|
||||
description = "Una aplicació minimalista i privada de gestió de tasques."
|
||||
weight = 32
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ずつ (zutsu)"
|
||||
title = "zutsu"
|
||||
description = "Una aplicación minimalista y privada de gestión de tareas."
|
||||
weight = 32
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = "ずつ (zutsu)"
|
||||
title = "zutsu"
|
||||
description = "A private minimalist task management app."
|
||||
weight = 32
|
||||
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
{%- set_global all_posts = all_posts | concat(with=section_item.pages) -%}
|
||||
{%- endfor %}
|
||||
|
||||
{# Sort all posts by date #}
|
||||
{%- set archive_reverse = section.extra.archive_reverse | default(value=false) -%}
|
||||
{%- set all_posts = all_posts | sort(attribute="date") -%}
|
||||
{%- if not archive_reverse -%}
|
||||
{%- set all_posts = all_posts | reverse -%}
|
||||
{%- endif -%}
|
||||
|
||||
{# Group posts by year. #}
|
||||
{% set posts_by_year = all_posts | group_by(attribute="year") %}
|
||||
{% set years = [] %}
|
||||
|
@ -32,8 +39,13 @@
|
|||
{% set_global years = years | concat(with=[year]) %}
|
||||
{% endfor %}
|
||||
|
||||
{# Iterate over sorted & reversed years (newest to oldest). #}
|
||||
{% for year in years | sort | reverse %}
|
||||
{# Iterate over years #}
|
||||
{% set years = years | sort %}
|
||||
{%- if not archive_reverse -%}
|
||||
{%- set years = years | reverse -%}
|
||||
{%- endif -%}
|
||||
|
||||
{% for year in years %}
|
||||
{% set posts = posts_by_year[year] %}
|
||||
{% if posts | length > 0 %}
|
||||
<li>
|
||||
|
|
|
@ -68,7 +68,9 @@
|
|||
|
||||
{%- if "dates" in metadata -%}
|
||||
{%- set allowed_post_listing_dates = ["date", "updated", "both"] -%}
|
||||
{%- set post_listing_date = config.extra.post_listing_date | default(value="date") -%}
|
||||
{#- Calling the hierarchy macro here causes an error due to the "get parents" part of the macro. -#}
|
||||
{#- This seems cleaner. -#}
|
||||
{%- set post_listing_date = section.extra.post_listing_date | default(value=config.extra.post_listing_date) | default(value="date") -%}
|
||||
{%- if post_listing_date not in allowed_post_listing_dates -%}
|
||||
{{ throw(message="ERROR: Invalid value for config.extra.post_listing_date. Allowed values are 'date', 'updated', or 'both'.") }}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<link rel="icon" type="image/png" href="{{ get_url(path=config.extra.favicon) }}"/>
|
||||
{% endif %}
|
||||
{% if config.extra.favicon_emoji %}
|
||||
<link rel=icon href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 55"><text y=".7em" font-size="82">{{ config.extra.favicon_emoji }}</text></svg>'>
|
||||
<link rel=icon href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50%" x="50%" dominant-baseline="central" text-anchor="middle" font-size="88">{{ config.extra.favicon_emoji }}</text></svg>'>
|
||||
{% endif %}
|
||||
|
||||
{# Feeds #}
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
<main {% if more_than_one_section_shown %}class="{{ first_section }}-first"{% endif %}>
|
||||
{%- if section.extra.header %}
|
||||
{%- include "partials/home_banner.html" -%}
|
||||
{%- elif section.content -%}
|
||||
<section>
|
||||
{{ section.content | safe }}
|
||||
</section>
|
||||
{% endif -%}
|
||||
|
||||
{% if section.extra.section_path -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue