diff --git a/content/posts/configuration/sections/featured-posts/hero.svg b/content/posts/configuration/sections/featured-posts/hero.svg new file mode 100644 index 00000000..0f742c3b --- /dev/null +++ b/content/posts/configuration/sections/featured-posts/hero.svg @@ -0,0 +1 @@ +blogging \ No newline at end of file diff --git a/content/posts/configuration/sections/featured-posts/images/recent-posts.svg b/content/posts/configuration/sections/featured-posts/images/recent-posts.svg new file mode 100644 index 00000000..b657f475 --- /dev/null +++ b/content/posts/configuration/sections/featured-posts/images/recent-posts.svg @@ -0,0 +1 @@ +festivities \ No newline at end of file diff --git a/content/posts/configuration/sections/featured-posts/index.es.md b/content/posts/configuration/sections/featured-posts/index.es.md new file mode 100644 index 00000000..40066897 --- /dev/null +++ b/content/posts/configuration/sections/featured-posts/index.es.md @@ -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 +``` \ No newline at end of file diff --git a/content/posts/configuration/sections/featured-posts/index.md b/content/posts/configuration/sections/featured-posts/index.md new file mode 100644 index 00000000..9fd118ed --- /dev/null +++ b/content/posts/configuration/sections/featured-posts/index.md @@ -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 +```