Small shortcode cleanuo & use .IsNamedParams

This commit is contained in:
2022-05-13 11:33:55 -05:00
parent e9266cdead
commit 8e3fb4038a
5 changed files with 14 additions and 5 deletions

View File

@ -24,7 +24,7 @@
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" . "border" true) }}
{{ partial "figure.html" (dict "src" .) }}
</div>
{{ end }}

View File

@ -9,7 +9,7 @@
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" . "border" true) }}
{{ partial "figure.html" (dict "src" .) }}
</div>
{{ end }}

View File

@ -15,7 +15,7 @@
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" . "border" true) }}
{{ partial "figure.html" (dict "src" .) }}
</div>
{{ end }}