Create shortcodes and integration of press articles
This commit is contained in:
7
themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html
Normal file
7
themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html
Normal 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>
|
||||
7
themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html
Normal file
7
themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html
Normal 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>
|
||||
Reference in New Issue
Block a user