redesign pin and enable pinning only in section.html

This commit is contained in:
welpo 2024-11-13 16:12:56 +01:00
parent e7d64c2b8c
commit 48bfa5c5de
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
15 changed files with 58 additions and 53 deletions

View file

@ -1,7 +1,6 @@
+++
title = "Publicacions recents"
sort_by = "date"
template = "section.html"
[extra]
header = {title = "Hola! Soc tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, l'autor de tabi" }

View file

@ -1,7 +1,6 @@
+++
title = "Publicaciones recientes"
sort_by = "date"
template = "section.html"
[extra]
header = {title = "¡Hola! Soy tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, el autor de tabi" }

View file

@ -1,7 +1,6 @@
+++
title = "Latest posts"
sort_by = "date"
template = "section.html"
[extra]
header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, the theme's author" }

View file

@ -2,7 +2,6 @@
paginate_by = 5
title = "Blog"
sort_by = "date"
template = "section.html"
insert_anchor_links = "left"
[extra]

View file

@ -2,7 +2,6 @@
paginate_by = 5
title = "Blog"
sort_by = "date"
template = "section.html"
insert_anchor_links = "left"
[extra]

View file

@ -2,7 +2,6 @@
paginate_by = 5
title = "Blog"
sort_by = "date"
template = "section.html"
insert_anchor_links = "left"
[extra]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

View file

@ -1,7 +1,7 @@
+++
title = "Domina la configuració de tabi: guia completa"
date = 2023-09-18
updated = 2024-11-08
updated = 2024-11-13
description = "Descobreix les múltiples maneres en què pots personalitzar tabi."
[taxonomies]
@ -122,7 +122,6 @@ Configura `paginate_by` al front matter del teu arxiu `content/_index.md`:
```toml
title = "Últimes publicacions"
sort_by = "date"
template = "section.html"
paginate_by = 5 # Mostra 5 publicacions per pàgina.
[extra]
@ -138,7 +137,6 @@ Utilitza `section_path` a la secció `[extra]` del teu arxiu `content/_index.md`
```toml
title = "Últimes publicacions"
sort_by = "date"
template = "section.html"
# No configuris `paginate_by` aquí.
[extra]
@ -169,7 +167,8 @@ Per fixar una entrada, afegeix el següent al seu front matter:
pinned = true
```
{{ admonition(type="note", text='Aquesta configuració només afecta la pàgina principal (`template = "section.html"`). En altres seccions (p.ex. `blog/`, `archive/`), aquest configuració no té cap efecte.') }}
{{ admonition(type="note", text="Aquesta configuració només afecta les pàgines que utilitzen la plantilla predeterminada `section.html`. En aquesta demo, això inclou la pàgina principal i `blog/`. Altres seccions —pàgines d'etiquetes, `archive/` o sèries— ignoren aquesta configuració.") }}
##### Mostrar la data dels articles al llistat

View file

@ -1,7 +1,7 @@
+++
title = "Domina la configuración de tabi: guía completa"
date = 2023-09-18
updated = 2024-11-08
updated = 2024-11-13
description = "Descubre las múltiples maneras en que puedes personalizar tabi."
[taxonomies]
@ -122,7 +122,6 @@ Configura `paginate_by` en el front matter de tu archivo `content/_index.md`:
```toml
title = "Últimas publicaciones"
sort_by = "date"
template = "section.html"
paginate_by = 5 # Muestra 5 publicaciones por página.
[extra]
@ -138,7 +137,6 @@ Utiliza `section_path` en la sección `[extra]` de tu archivo `content/_index.md
```toml
title = "Últimas publicaciones"
sort_by = "date"
template = "section.html"
# No configures `paginate_by` aquí.
[extra]
@ -169,7 +167,7 @@ Para fijar una publicación, añade lo siguiente a su front matter:
pinned = true
```
{{ admonition(type="note", text='Este ajuste solo afecta a la página principal (`template = "section.html"`). En otras secciones (p.ej. `blog/`, `archive/`), este ajuste no tiene ningún efecto.') }}
{{ admonition(type="note", text='Este ajuste solo afecta a las páginas que usan la plantilla predeterminada `section.html`. En esta demo, esto incluye la página principal y `blog/`. Otras secciones —páginas de etiquetas, `archive/` o series— ignoran este ajuste.') }}
##### Mostrar la fecha de los artículos en el listado

View file

@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2024-11-08
updated = 2024-11-13
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@ -122,7 +122,6 @@ Set `paginate_by` in the front matter of your `content/_index.md` file:
```toml
title = "Latest posts"
sort_by = "date"
template = "section.html"
paginate_by = 5 # Show 5 posts per page.
[extra]
@ -138,7 +137,6 @@ Use `section_path` in the `[extra]` section of your `content/_index.md` file:
```toml
title = "Latest posts"
sort_by = "date"
template = "section.html"
# Do not set `paginate_by` here.
[extra]
@ -169,7 +167,7 @@ To pin a post, add the following to its front matter:
pinned = true
```
{{ admonition(type="note", text='This setting only affects the main page (`template = "section.html"`). On other sections (e.g. `blog/`, `archive/`), this setting makes no difference.') }}
{{ admonition(type="note", text='This setting only affects pages using the default `section.html` template. In this demo, this includes the main page and `blog/`. Other sections —tags, archives, or series pages— ignore this setting.') }}
##### Display the Date of Posts in Listing