Compare commits

..

No commits in common. "121a67a1fc3ab0981d3d6c0e6b6fa6d1a8f672c7" and "e9266cdeada02ae99d2f2f204e1c26066afee898" have entirely different histories.

6 changed files with 7 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -1,5 +1 @@
{{ if .IsNamedParams }}
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
{{ else }}
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
{{ end }}
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>

View File

@ -1,5 +1,7 @@
<aside>
{{ with .Inner }}
{{ . | markdownify }}
{{ else }}
{{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }}
{{ end }}
</aside>

View File

@ -1,9 +1,4 @@
{{ $resource := "" }}
{{ if .IsNamedParams }}
{{ $resource = $.Page.Resources.GetMatch (.Get "src") }}
{{ else }}
{{ $resource = $.Page.Resources.GetMatch (.Get 0) }}
{{ end }}
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
{{ $noborder := false }}
{{ if .Get "noborder" }}