diff --git a/layouts/shortcodes/figure.bak.html b/layouts/shortcodes/figure.bak.html deleted file mode 100644 index b58b09b..0000000 --- a/layouts/shortcodes/figure.bak.html +++ /dev/null @@ -1,87 +0,0 @@ - - -{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }} -{{- $.Page.Scratch.Add "figurecount" 1 -}} - -{{- $thumb := .Get "src" -}} - - -{{- $figid := "" -}} -{{- $galid := "" -}} -{{- $id := "" -}} -{{- $previd := "" -}} -{{- $nextid := "" -}} -{{- if .Parent -}} - {{- $galid = .Page.Scratch.Get "gallery" -}} - {{- if not $galid }}{{ $galid = 0 }}{{ end -}} - {{- $galid = add $galid 1 -}} - {{- $.Page.Scratch.Add "thisgalfig" 1 -}} - {{- $figid = .Page.Scratch.Get "thisgalfig" -}} -{{- else -}} - {{- $.Page.Scratch.Add "nogalfig" 1 -}} - {{- $figid = .Page.Scratch.Get "nogalfig" -}} -{{- end -}} -{{- if $galid -}} - {{- $id = print "gal" $galid "-" "fig" $figid -}} - {{- $previd = print "gal" $galid "-" "fig" (sub $figid 1) -}} - {{- $nextid = print "gal" $galid "-" "fig" (add $figid 1) -}} -{{- else -}} - {{- $id = print "fig" $figid -}} -{{- end -}} - -
-
- {{ if (.Get "link") -}} - - {{ else -}} - {{ if not (eq (.Get "lightbox") "none") }}{{ end }} - {{- end -}} - - {{ . }} - {{- if or (.Get "caption") (.Get "attr")}} -
- {{- .Get "caption" | markdownify -}} - {{- with .Get "attr" }} {{ . | markdownify}}{{ end -}} -
- {{- end }} -
- - {{- if not (eq (.Get "lightbox") "none") -}} -
- -
- -

- {{- if or (.Get "caption") (.Get "attr") -}} - {{- .Get "caption" | markdownify -}} - {{- with .Get "attrlink" }} {{- end -}} - {{- with .Get "attr" }} {{ . | markdownify}}{{ end -}} - {{- with .Get "attrlink" }}{{- end -}} - {{- end }} -

-
- - {{- if .Parent -}} - {{- if not (eq $figid 1) -}} - - {{- else -}} - - {{- end -}} - - - {{- end }} -
- {{- end -}} -
-
diff --git a/layouts/shortcodes/gallery.bak.html b/layouts/shortcodes/gallery.bak.html deleted file mode 100644 index fca5650..0000000 --- a/layouts/shortcodes/gallery.bak.html +++ /dev/null @@ -1,11 +0,0 @@ - - -{{- .Page.Scratch.Add "gallery" 1 -}} - - -{{- .Page.Scratch.Delete "thisgalfig" -}} diff --git a/layouts/shortcodes/snap-dir.bak.html b/layouts/shortcodes/snap-dir.bak.html deleted file mode 100644 index ca67df6..0000000 --- a/layouts/shortcodes/snap-dir.bak.html +++ /dev/null @@ -1,59 +0,0 @@ - - - -{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }} -{{- $.Page.Scratch.Add "figurecount" 1 -}} - -{{- $files := readDir (print "/static" (.Get "srcdir")) -}} -{{- $maxid := len $files -}} - -{{- range $files -}} - {{ $src := (print ($.Get "srcdir") "/" .Name) }} - {{- $thumb := $src -}} - - - {{- $figid := "" -}} - {{- $galid := "" -}} - {{- $id := "" -}} - {{- $previd := "" -}} - {{- $nextid := "" -}} - {{- $galid = $.Page.Scratch.Get "gallery" -}} - {{- if not $galid }}{{ $galid = 0 }}{{ end -}} - {{- $galid = add $galid 1 -}} - {{- $.Page.Scratch.Add "thisgalfig" 1 -}} - {{- $figid = $.Page.Scratch.Get "thisgalfig" -}} - {{- $id = print "gal" $galid "-" "fig" $figid -}} - {{- $previd = print "gal" $galid "-" "fig" (sub $figid 1) -}} - {{- $nextid = print "gal" $galid "-" "fig" (add $figid 1) -}} - -
- - - - - -
- -
- -
- - {{- if not (eq $figid 1) -}} - - {{- else -}} - - {{- end -}} - {{- if not (eq $figid $maxid) -}} - - {{- else -}} - - {{- end }} -
-
-{{ end }}