Create shortcodes and integration of press articles

This commit is contained in:
2024-02-14 13:54:18 +01:00
parent 9879042e6e
commit 08b286faf5
4 changed files with 54 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
<!--
{{ .Get "url"}}{{ page.Resources}}
-->
{{ $res := page.Resources.GetMatch (.Get "url") }}
<a target="_blank" class="download press-download" href="{{ $res.RelPermalink }}">
{{ .Inner }}
</a>

View File

@@ -0,0 +1,7 @@
<!--
{{ .Get "src"}}{{ page.Resources}}
-->
<div class="press-img">
{{- $res := page.Resources.GetMatch (.Get "src") -}}
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}">
</div>