Last active
June 1, 2018 18:28
-
-
Save PaulEibensteiner/c88e14439abc1111f7388520ade2cf36 to your computer and use it in GitHub Desktop.
shortcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- slightly modified code originally by talves, can be extended to create responsive images etc. as well --> | |
{{ $nombre := .Get "name" }} | |
{{ $page := . }} | |
{{ with .Site.GetPage "section" "images" }} | |
{{ with .Resources.GetMatch $nombre }} | |
{{ $image1080x := (.Resize "1080x") }} | |
<img src="{{ $image1080x.RelPermalink }}"> | |
{{ end }} | |
{{ end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment