mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 08:12:57 -05:00
Compare commits
2 Commits
e9266cdead
...
121a67a1fc
Author | SHA1 | Date | |
---|---|---|---|
121a67a1fc | |||
8e3fb4038a |
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
{{ with .Resources.GetMatch "feature" }}
|
{{ with .Resources.GetMatch "feature" }}
|
||||||
<div class="post-media">
|
<div class="post-media">
|
||||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
{{ partial "figure.html" (dict "src" .) }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
{{ with .Resources.GetMatch "feature" }}
|
{{ with .Resources.GetMatch "feature" }}
|
||||||
<div class="post-media">
|
<div class="post-media">
|
||||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
{{ partial "figure.html" (dict "src" .) }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
{{ with .Resources.GetMatch "feature" }}
|
{{ with .Resources.GetMatch "feature" }}
|
||||||
<div class="post-media">
|
<div class="post-media">
|
||||||
{{ partial "figure.html" (dict "src" . "border" true) }}
|
{{ partial "figure.html" (dict "src" .) }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -1 +1,5 @@
|
|||||||
|
{{ if .IsNamedParams }}
|
||||||
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
||||||
|
{{ else }}
|
||||||
|
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
|
||||||
|
{{ end }}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<aside>
|
<aside>
|
||||||
{{ with .Inner }}
|
{{ with .Inner }}
|
||||||
{{ . | markdownify }}
|
{{ . | 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 }}
|
{{ end }}
|
||||||
</aside>
|
</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 }}
|
{{ $noborder := false }}
|
||||||
{{ if .Get "noborder" }}
|
{{ if .Get "noborder" }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user