-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into create-pull-request/patch
- Loading branch information
Showing
7 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
content/posts/configuration/sections/featured-posts/images/recent-posts.svg
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
32
content/posts/configuration/sections/featured-posts/index.es.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
29
content/posts/configuration/sections/featured-posts/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |