diff --git a/themes/hugo-xmin/layouts/partials/figure.html b/themes/hugo-xmin/layouts/partials/figure.html new file mode 100644 index 0000000..6b46f26 --- /dev/null +++ b/themes/hugo-xmin/layouts/partials/figure.html @@ -0,0 +1,29 @@ + + +{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }} +{{- $.Page.Scratch.Add "figurecount" 1 -}} + +{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }} +