Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Featured Posts Section #276

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions content/posts/configuration/sections/featured-posts/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Configurando la sección de Publicaciones Destacadas"
date: 2024-02-06T06:20:34+06:00
author:
name: BernatBC
image: images/author/bernatbc.png
menu:
sidebar:
name: Sección de Publicaciones Destacadas
identifier: featured-posts-section
parent: sections
weight: 150
---

La sección de `Publicaciones Destacadas` sirve para mostrar las publicaciones que quieras. Para habilitar esta sección, crea un archivo `featured-posts.yaml` dentro del directorio `data/es/sections` e incluye el siguiente contenido:

```yaml
# Información de la sección
section:
name: Publicaciones DestacadAS # Título de la sección
id: featured-posts # id del url de la sección *se requiere*
enable: true # Booleano que determina si la sección está activada (predeterminado: false)
weight: 6 # Orden de la sección (predeterminado: alfabeticamente seguida del peso)
showOnNavbar: true # Booleano que determina si el enlace de esta sección debe aparecer en la barra de navegación
hideTitle: true # Opcionalmente puede ocultar el título del menú (predeterminado: false)

# publicaciones a destacar
posts:
- quickstart
- update-v3-to-v4
- prepare-site
```
29 changes: 29 additions & 0 deletions content/posts/configuration/sections/featured-posts/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Configuring Featured Posts Section"
date: 2024-02-06T06:20:34+06:00
menu:
sidebar:
name: Featured Posts Section
identifier: fetured-posts-section
parent: sections
weight: 150
---

The `Fetured Posts` section is used to showcase any post you like. To enable this section, create a `featured-posts.yaml` file in the `data/en/sections` directory and include the following content:

```yaml
# section information
section:
name: Featured Posts # Title of section (default: "")
id: featured-posts # url id/slug of section *Required*
enable: true # Boolean to determine if this section is enabled (default: false)
weight: 6 # Order to display section in (default: alphabetical followed by weight)
showOnNavbar: true # Boolean to determine if a link should be shown for this section on the navbar
hideTitle: true # Can optionally hide the title in sections (default: false)

# posts to feature
posts:
- quickstart
- update-v3-to-v4
- prepare-site
```
13 changes: 13 additions & 0 deletions data/en/sections/featured-posts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
section:
name: Featured Posts # Title of section (default: "")
id: featured-posts # url id/slug of section *Required*
enable: true # Boolean to determine if this section is enabled (default: false)
weight: 6 # Order to display section in (default: alphabetical followed by weight)
showOnNavbar: true # Boolean to determine if a link should be shown for this section on the navbar
hideTitle: false # Can optionally hide the title in sections (default: false)

# posts to feature
posts:
- quickstart
- update-v3-to-v4
- prepare-site
2 changes: 1 addition & 1 deletion data/en/sections/recent-posts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ section:
name: Recent Posts
id: recent-posts
enable: true
weight: 5
weight: 6
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
Expand Down
13 changes: 13 additions & 0 deletions data/es/sections/featured-posts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
section:
name: Publicaciones Destacadas # Title of section (default: "")
id: featured-posts # url id/slug of section *Required*
enable: true # Boolean to determine if this section is enabled (default: false)
weight: 5 # Order to display section in (default: alphabetical followed by weight)
showOnNavbar: true # Boolean to determine if a link should be shown for this section on the navbar
hideTitle: false # Can optionally hide the title in sections (default: false)

# posts to feature
posts:
- quickstart
- update-v3-to-v4
- prepare-site
Loading