Fix: Heros updated, deleted link attribute from frontmatter
This commit is contained in:
parent
13b18eaa51
commit
2ecdd688ea
@ -3,6 +3,5 @@ title: "{{ replace .Name "-" " " | title }}"
|
|||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
draft: true
|
draft: true
|
||||||
image:
|
image:
|
||||||
link:
|
|
||||||
current: false
|
current: false
|
||||||
---
|
---
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
title: "Hero1"
|
title: "Hero1"
|
||||||
date: 2022-02-28T22:25:30Z
|
date: 2022-02-28T22:25:30Z
|
||||||
draft: false
|
draft: false
|
||||||
image:
|
image: anon.png
|
||||||
link:
|
|
||||||
current: false
|
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 ⚡.
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: "Hero2"
|
title: "Hero2"
|
||||||
date: 2022-02-28T22:25:56Z
|
date: 2022-02-28T22:25:56Z
|
||||||
draft: false
|
draft: true
|
||||||
image:
|
image:
|
||||||
link:
|
|
||||||
current: false
|
current: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: "Hero3"
|
title: "Hero3"
|
||||||
date: 2022-02-28T22:26:26Z
|
date: 2022-02-28T22:26:26Z
|
||||||
draft: false
|
draft: true
|
||||||
image: anon.png
|
image: anon.png
|
||||||
link: https://twitch.tv/oscarmlage
|
|
||||||
current: true
|
current: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -3,29 +3,15 @@
|
|||||||
<main class="main wrapper">
|
<main class="main wrapper">
|
||||||
|
|
||||||
<div class="hero">
|
<div class="hero">
|
||||||
{{ range (where .Site.Pages "Type" "heros") }}
|
|
||||||
<div {{ if .Params.current }}class="is-active"{{ end }}>
|
|
||||||
{{ if .Params.link }}<a href="{{ .Params.link }}">{{ end }}
|
|
||||||
{{ if .Params.image }}
|
|
||||||
<img src="heros/{{ .Params.image }}"
|
|
||||||
alt="{{ .Content | plainify | htmlUnescape | truncate 10 }}" />
|
|
||||||
{{ end }}
|
|
||||||
{{ .Content }}
|
|
||||||
{{ if .Params.link }}</a>{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- PROVISIONAL PROMO - @todo: change this -->
|
|
||||||
{{ range (where .Site.Pages "Type" "heros") }}
|
{{ range (where .Site.Pages "Type" "heros") }}
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<div class="hero-img" >
|
<div class="hero-img" >
|
||||||
<img src="heros/{{ .Params.image }}"
|
<img src="heros/{{ .Params.image }}"
|
||||||
alt="{{ .Content | plainify | htmlUnescape | truncate 10 }}" />
|
alt="{{ .Content | plainify | htmlUnescape | truncate 10 }}" />
|
||||||
</div>
|
</div>
|
||||||
|
<h2 class="hero-title">{{ .Content }}</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h2 class="hero-title">Este es el primer texto dinámico del hero y mejor con el <a href="">enlace a twich aquí</a>, no global ⚡.</h2>
|
|
||||||
<!-- / PROVISIONAL PROMO - @todo: change this -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="posts-container">
|
<div class="posts-container">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user