mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 16:22:57 -05:00
Compare commits
No commits in common. "121a67a1fc3ab0981d3d6c0e6b6fa6d1a8f672c7" and "e9266cdeada02ae99d2f2f204e1c26066afee898" have entirely different histories.
121a67a1fc
...
e9266cdead
@ -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" .) }}
|
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||||
</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" .) }}
|
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||||
</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" .) }}
|
{{ partial "figure.html" (dict "src" . "border" true) }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -1,5 +1 @@
|
|||||||
{{ if .IsNamedParams }}
|
|
||||||
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
|
||||||
{{ else }}
|
|
||||||
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
|
|
||||||
{{ end }}
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<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,9 +1,4 @@
|
|||||||
{{ $resource := "" }}
|
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
||||||
{{ 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