Skip to content

Commit

Permalink
Merge branch 'main' into create-pull-request/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored Feb 12, 2024
2 parents 51cec19 + bb56f05 commit 4e3d4f8
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 1 deletion.
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

0 comments on commit 4e3d4f8

Please sign in to comment.