diff --git a/layouts/.gitkeep b/layouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/layouts/shortcodes/betterfigure.html b/layouts/shortcodes/betterfigure.html new file mode 100644 index 0000000..3f55a33 --- /dev/null +++ b/layouts/shortcodes/betterfigure.html @@ -0,0 +1,35 @@ + + + {{- if .Get "link" -}} + + {{- end -}} + {{ with .Get + {{- if .Get "link" }}{{ end -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
+ {{ with (.Get "title") -}} +

{{ . }}

+ {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}

+ {{- end }} +
+ {{- end }} + + diff --git a/layouts/shortcodes/floatfigure.html b/layouts/shortcodes/floatfigure.html new file mode 100644 index 0000000..f7ce49f --- /dev/null +++ b/layouts/shortcodes/floatfigure.html @@ -0,0 +1,43 @@ + + + {{- if .Get "link" -}} + + {{- end -}} + {{ with .Get + {{- if .Get "link" }}{{ end -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
+ {{ with (.Get "title") -}} +

{{ . }}

+ {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}

+ {{- end }} +
+ {{- end }} + + diff --git a/layouts/shortcodes/floatfigure.html.bak b/layouts/shortcodes/floatfigure.html.bak new file mode 100644 index 0000000..6c8c1a1 --- /dev/null +++ b/layouts/shortcodes/floatfigure.html.bak @@ -0,0 +1,42 @@ + + + {{- if .Get "link" -}} + + {{- end -}} + {{ with .Get + {{- if .Get "link" }}{{ end -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
+ {{ with (.Get "title") -}} +

{{ . }}

+ {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}

+ {{- end }} +
+ {{- end }} + + diff --git a/layouts/shortcodes/floatfiguregifuseless.html b/layouts/shortcodes/floatfiguregifuseless.html new file mode 100644 index 0000000..4b2c7c8 --- /dev/null +++ b/layouts/shortcodes/floatfiguregifuseless.html @@ -0,0 +1,78 @@ + + + {{- if .Get "link" -}} + + {{- end -}} +
+ + {{ with .Get +
+ {{- if .Get "link" }}{{ end -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
+ {{ with (.Get "title") -}} +

{{ . }}

+ {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}

+ {{- end }} +
+ {{- end }} + +