feat: support using info-page.html for sections (#455)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
Christian Franzl 2025-01-02 21:50:56 +01:00 committed by GitHub
parent e05860636b
commit 28fe074ea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 11 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Domina la configuració de tabi: guia completa"
date = 2023-09-18
updated = 2024-11-30
updated = 2025-01-02
description = "Descobreix les múltiples maneres en què pots personalitzar tabi."
[taxonomies]
@ -490,6 +490,17 @@ path = "about"
Fixa't com s'estableix `path = "about"`. Zola situarà la pàgina a `$base_url/about/`. Si vols que la pàgina estigui disponible a `/contacte/`, hauries d'establir `path = "contacte"`.
La plantilla `info-page.html` també es pot utilitzar per crear landing pages a la ruta arrel (`"/"`). Per fer-ho, l'arxiu `content/_index.md` hauria de ser així:
```markdown
+++
title = "Títol de la pàgina"
template = "info-page.html"
+++
Contingut amb Markdown.
```
---
## SEO

View file

@ -1,7 +1,7 @@
+++
title = "Domina la configuración de tabi: guía completa"
date = 2023-09-18
updated = 2024-11-30
updated = 2025-01-02
description = "Descubre las múltiples maneras en que puedes personalizar tabi."
[taxonomies]
@ -490,6 +490,17 @@ path = "about"
Fíjate cómo se establece `path = "about"`. Zola colocará la página en `$base_url/about/`. Si deseas que la página esté disponible en `/contacto/`, tendrías que establecer `path = "contacto"`.
La plantilla `info-page.html` también se puede utilizar para crear lading pages en la ruta raíz (`"/"`). Para hacerlo, el archivo `content/_index.md` debería verse así:
```markdown
+++
title = "Título de la página"
template = "info-page.html"
+++
Contenido con Markdown.
```
---
## SEO

View file

@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2024-11-30
updated = 2025-01-02
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@ -495,6 +495,17 @@ path = "about"
Notice how the `path` is set to `about`. Zola will place the page at `$base_url/about/`. If you'd like to have the page available at `/contact/`, you'd set `path = "contact"`.
The `info-page.html` template can also be used to create landing pages at the path root (`"/"`). To do that, the `content/_index.md` file should look like this:
```markdown
+++
title = "Landing Page Title"
template = "info-page.html"
+++
Place your landing page Markdown content here.
```
---
## SEO