diff options
author | He Yeshuang <yeshuanghe@gmail.com> | 2020-06-01 12:06:21 +0300 |
---|---|---|
committer | He Yeshuang <yeshuanghe@gmail.com> | 2020-06-01 12:06:21 +0300 |
commit | c5592ee8b2b58f2922289f72b5be5d8b6135e662 (patch) | |
tree | 29c5965ec0b043a4ec4c09e9e952e2ad787161b7 | |
parent | 02d0fd0a039b92d908113abc192cfaf990fca007 (diff) |
purge orphaned shortcodes
-rw-r--r-- | layouts/shortcodes/fluid_img.html | 7 | ||||
-rw-r--r-- | layouts/shortcodes/fluid_imgs.html | 21 | ||||
-rw-r--r-- | layouts/shortcodes/pure_table.html | 20 |
3 files changed, 0 insertions, 48 deletions
diff --git a/layouts/shortcodes/fluid_img.html b/layouts/shortcodes/fluid_img.html deleted file mode 100644 index 6930dd9..0000000 --- a/layouts/shortcodes/fluid_img.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ if .IsNamedParams }} -<div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}pure-u-1{{ end }}"> - <img class="pure-img" src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}> -</div> -{{ else }} -<img class="pure-img" src="{{ index .Params 0 }}" alt=""> -{{ end }}
\ No newline at end of file diff --git a/layouts/shortcodes/fluid_imgs.html b/layouts/shortcodes/fluid_imgs.html deleted file mode 100644 index f899772..0000000 --- a/layouts/shortcodes/fluid_imgs.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ $paramCount := len .Params }} -{{ if gt $paramCount 0 }} -<div class="pure-g"> -{{ range $param := .Params }} - {{ $items := split $param "|" }} - {{ $itemCount := len $items }} - <!-- Item count must be at least 2 as - "class" and "src" must be specified --> - {{ if ge $itemCount 2 }} - <div class="{{ index $items 0 }}"> - <div style="padding: 0 .2em"> - <img - class="pure-img-responsive" - src="{{ index $items 1 }}" - alt="{{ if ge $itemCount 3 }}{{ index $items 2 }}{{ else }}{{ "" }}{{ end }}"> - </div> - </div> - {{ end }} -{{ end }} -</div> -{{ end }}
\ No newline at end of file diff --git a/layouts/shortcodes/pure_table.html b/layouts/shortcodes/pure_table.html deleted file mode 100644 index 91236bc..0000000 --- a/layouts/shortcodes/pure_table.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ $fields := (index .Params 0) }} -{{ $data := after 1 .Params }} - -<table class="pure-table pure-table-striped"> - <thead><tr> - {{ range split $fields "|"}} - <th>{{ . }}</th> - {{ end }} - </thead></tr> - <tbody> - {{ range $data}} - <tr> - {{ $items := split . "|" }} - {{ range $items }} - <td>{{ . }}</td> - {{ end }} - </tr> - {{ end }} - </tbody> -</table>
\ No newline at end of file |