feat: add previous/next article navigation (#246)

This commit is contained in:
Óscar
2024-01-04 19:05:06 +01:00
committed by GitHub
parent 0aef23b370
commit dac6bfc024
12 changed files with 90 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -401,6 +401,18 @@ Activa l'índex de continguts just sota del títol i metadades de l'article amb
Per saber més sobre com personalitzar-ho, consulta [la documentació sobre la Taula de continguts](/ca/blog/toc/).
### Enllaços als articles anterior i següent
| Pàgina | Secció | `config.toml` | Segueix la jerarquia | Requereix JavaScript |
|:------:|:------:|:-------------:|:--------------------:|:--------------------:|
| ✅ | ✅ | ✅ | ✅ | ❌ |
Mostra enllaços als articles anterior i següent a la part inferior dels posts. Es veu així:
{{ dual_theme_image(light_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_light.webp", dark_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_dark.webp", alt="Enllaços als articles anterior i següent", full_width=true) }}
Per activar aquesta funció, estableix `show_previous_next_article_links = true`.
### Enllaços de retorn a les notes a peu de pàgina
| Pàgina | Secció | `config.toml` | Segueix la jerarquia | Requereix JavaScript |

View File

@@ -399,6 +399,18 @@ Habilita el índice de contenidos justo debajo del título y metadatos del artí
Para saber más sobre cómo personalizarlo, consulta [la documentación sobre la Tabla de contenido](/es/blog/toc/).
### Enlace a los artículos anterior y siguiente
| Página | Sección | `config.toml` | Sigue la jerarquía | Requiere JavaScript |
|:------:|:-------:|:-------------:|:------------------:|:-------------------:|
| ✅ | ✅ | ✅ | ✅ | ❌ |
Muestra enlaces a los artículos anterior y siguiente en la parte inferior de los posts. Se ve así:
{{ dual_theme_image(light_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_light.webp", dark_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_dark.webp", alt="Enlaces a los artículos anterior y siguiente", full_width=true) }}
Para activar esta función, configura `show_previous_next_article_links = true`.
### Enlaces de retorno en notas al pie
| Página | Sección | `config.toml` | Sigue la jerarquía | Requiere JavaScript |

View File

@@ -403,6 +403,18 @@ Enable the table of contents right below the post's title and metadata with `toc
Read more about the table of contents and how to customise it by reading [the docs](/blog/toc/).
### Previous and Next Article Links
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |
|:----:|:-------:|:-------------:|:-----------------:|:-------------------:|
| ✅ | ✅ | ✅ | ✅ | ❌ |
Displays links to the previous and next articles at the bottom of posts. It looks like this:
{{ dual_theme_image(light_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_light.webp", dark_src="blog/mastering-tabi-settings/img/show_previous_next_article_links_dark.webp" alt="Previous and next article links", full_width=true) }}
To activate this feature, set `show_previous_next_article_links = true`.
### Footnote Backlinks
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |