mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-11 22:42:58 -05:00
Compare commits
2 Commits
e9266cdead
...
121a67a1fc
Author | SHA1 | Date | |
---|---|---|---|
121a67a1fc | |||
8e3fb4038a |
@ -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 }}
|
||||
|
||||
|
@ -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 }}
|
||||
|
||||
|
@ -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 }}
|
||||
|
||||
|
@ -1 +1,5 @@
|
||||
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
||||
{{ if .IsNamedParams }}
|
||||
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
||||
{{ else }}
|
||||
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
|
||||
{{ end }}
|
||||
|
@ -1,7 +1,5 @@
|
||||
<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>
|
||||
|
@ -1,4 +1,9 @@
|
||||
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ $resource := "" }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $resource = $.Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ else }}
|
||||
{{ $resource = $.Page.Resources.GetMatch (.Get 0) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $noborder := false }}
|
||||
{{ if .Get "noborder" }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user