From 2ecdd688ea519b27e11440887a5385544862bb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Mon, 7 Mar 2022 23:05:28 +0100 Subject: [PATCH] Fix: Heros updated, deleted link attribute from frontmatter --- src/archetypes/hero.md | 1 - src/content/heros/hero1.md | 6 +++--- src/content/heros/hero2.md | 3 +-- src/content/heros/hero3.md | 3 +-- src/themes/oscar/layouts/index.html | 16 +--------------- 5 files changed, 6 insertions(+), 23 deletions(-) diff --git a/src/archetypes/hero.md b/src/archetypes/hero.md index fb5265e..828cb56 100644 --- a/src/archetypes/hero.md +++ b/src/archetypes/hero.md @@ -3,6 +3,5 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true image: -link: current: false --- diff --git a/src/content/heros/hero1.md b/src/content/heros/hero1.md index 860bf04..8140cd9 100644 --- a/src/content/heros/hero1.md +++ b/src/content/heros/hero1.md @@ -2,9 +2,9 @@ title: "Hero1" date: 2022-02-28T22:25:30Z draft: false -image: -link: +image: anon.png current: false --- -1. Este es el primer texto dinámico del hero +Este es el primer texto dinámico del hero y mejor con el [enlace a twich aquí](https://twitch.tv/oscarmlage), no global ⚡. + diff --git a/src/content/heros/hero2.md b/src/content/heros/hero2.md index ce8b913..9a1b7ee 100644 --- a/src/content/heros/hero2.md +++ b/src/content/heros/hero2.md @@ -1,9 +1,8 @@ --- title: "Hero2" date: 2022-02-28T22:25:56Z -draft: false +draft: true image: -link: current: false --- diff --git a/src/content/heros/hero3.md b/src/content/heros/hero3.md index 8ca9157..3a103ae 100644 --- a/src/content/heros/hero3.md +++ b/src/content/heros/hero3.md @@ -1,9 +1,8 @@ --- title: "Hero3" date: 2022-02-28T22:26:26Z -draft: false +draft: true image: anon.png -link: https://twitch.tv/oscarmlage current: true --- diff --git a/src/themes/oscar/layouts/index.html b/src/themes/oscar/layouts/index.html index 8c1f0ad..1692d0f 100644 --- a/src/themes/oscar/layouts/index.html +++ b/src/themes/oscar/layouts/index.html @@ -3,29 +3,15 @@
- {{ range (where .Site.Pages "Type" "heros") }} -
- {{ if .Params.link }}{{ end }} - {{ if .Params.image }} - {{ .Content | plainify | htmlUnescape | truncate 10 }} - {{ end }} - {{ .Content }} - {{ if .Params.link }}{{ end }} -
- {{ end }} - - {{ range (where .Site.Pages "Type" "heros") }} {{ if .Params.image }}
{{ .Content | plainify | htmlUnescape | truncate 10 }}
+

{{ .Content }}

{{ end }} {{ end }} -

Este es el primer texto dinámico del hero y mejor con el enlace a twich aquí, no global ⚡.

-