summaryrefslogtreecommitdiffstats
path: root/docs/layouts/shortcodes
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-14 10:32:16 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-14 10:32:16 +0200
commit8be3934b59216c235d54c8560309daaf10e959a2 (patch)
tree6c6d2b5fae3bbf502e42b5cc27ea1c0068ab010e /docs/layouts/shortcodes
parentfbb25014e1306ce7127d53e5fc4fc49867790336 (diff)
docs: Remove
Docs site is moved to https://github.com/gohugoio/hugoDocs Will be re-added here as a Git submodule.
Diffstat (limited to 'docs/layouts/shortcodes')
-rw-r--r--docs/layouts/shortcodes/datatable-vertical.html26
-rw-r--r--docs/layouts/shortcodes/datatable.html23
-rw-r--r--docs/layouts/shortcodes/directoryindex.html13
-rw-r--r--docs/layouts/shortcodes/gh.html9
-rw-r--r--docs/layouts/shortcodes/nohighlight.html1
-rw-r--r--docs/layouts/shortcodes/readfile.html1
-rw-r--r--docs/layouts/shortcodes/youtube.html4
7 files changed, 0 insertions, 77 deletions
diff --git a/docs/layouts/shortcodes/datatable-vertical.html b/docs/layouts/shortcodes/datatable-vertical.html
deleted file mode 100644
index 1d2629eca..000000000
--- a/docs/layouts/shortcodes/datatable-vertical.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{ $package := (index .Params 0) }}
-{{ $listname := (index .Params 1) }}
-{{ $list := (index (index .Site.Data.docs $package) $listname) }}
-{{ $fields := after 2 .Params }}
-<table class="table table-bordered">
- {{ range $list }}
- {{ range $k, $v := . }}
- {{ $.Scratch.Set $k $v }}
- {{ end }}
- {{ end }}
-
- {{ range $i, $_ := $fields }}
- <tr>
- {{ $.Scratch.Set "i" $i }}
-
- {{ $field := (index $fields ($.Scratch.Get "i") ) }}
- <th>{{ $field }}</th>
- {{ range $list }}
- <td>
- {{ index . $field }}
- </td>
- {{ end }}
-
- </tr>
- {{ end }}
-</table> \ No newline at end of file
diff --git a/docs/layouts/shortcodes/datatable.html b/docs/layouts/shortcodes/datatable.html
deleted file mode 100644
index f40605404..000000000
--- a/docs/layouts/shortcodes/datatable.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{{ $package := (index .Params 0) }}
-{{ $listname := (index .Params 1) }}
-{{ $list := (index (index .Site.Data.docs $package) $listname) }}
-{{ $fields := after 2 .Params }}
-
-<table class="table table-bordered">
- <tr>
- {{ range $fields }}
- <th>{{ . }}</th>
- {{ end }}
- </tr>
- {{ range $list }}
- <tr>
- {{ range $k, $v := . }}
- {{ $.Scratch.Set $k $v }}
- {{ end }}
- {{ range $fields }}
- <td>{{ $.Scratch.Get . }}</td>
- {{ end }}
- </tr>
- {{ end }}
-</table>
-
diff --git a/docs/layouts/shortcodes/directoryindex.html b/docs/layouts/shortcodes/directoryindex.html
deleted file mode 100644
index 02a4efadc..000000000
--- a/docs/layouts/shortcodes/directoryindex.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- $pathURL := .Get "pathURL" -}}
-{{- $path := .Get "path" -}}
-{{- $files := readDir $path -}}
-<table>
- <th>Size in bytes</th>
- <th>Name</th>
-{{- range $files }}
- <tr>
- <td>{{ .Size }}</td>
- <td><a href="{{ $pathURL }}{{ .Name | relURL }}"> {{ .Name }}</a></td>
- </tr>
-{{- end }}
-</table>
diff --git a/docs/layouts/shortcodes/gh.html b/docs/layouts/shortcodes/gh.html
deleted file mode 100644
index 0a28bf121..000000000
--- a/docs/layouts/shortcodes/gh.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{{ range .Params }}
-{{ if eq (substr . 0 1) "@" }}
-<a href="//github.com/{{ substr . 1 }}">{{ . }}</a>
-{{ else if eq (substr . 0 2) "0x" }}
-<a href="//github.com/gohugoio/hugo/commit/{{ substr . 2 }}">{{ substr . 2 6 }}</a>
-{{ else }}
-<a href="//github.com/gohugoio/hugo/issues/{{ . }}">#{{ . }}</a>
-{{ end }}
-{{ end }}
diff --git a/docs/layouts/shortcodes/nohighlight.html b/docs/layouts/shortcodes/nohighlight.html
deleted file mode 100644
index d9cb5f302..000000000
--- a/docs/layouts/shortcodes/nohighlight.html
+++ /dev/null
@@ -1 +0,0 @@
-<pre><code class="hljs nohighlight">{{ .Inner }}</code></pre>
diff --git a/docs/layouts/shortcodes/readfile.html b/docs/layouts/shortcodes/readfile.html
deleted file mode 100644
index f5b3459bf..000000000
--- a/docs/layouts/shortcodes/readfile.html
+++ /dev/null
@@ -1 +0,0 @@
-{{- .Get 0 | readFile -}}
diff --git a/docs/layouts/shortcodes/youtube.html b/docs/layouts/shortcodes/youtube.html
deleted file mode 100644
index ce7dd0508..000000000
--- a/docs/layouts/shortcodes/youtube.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="video-container">
-<iframe class="youtube-player" type="text/html" width="100%" height="auto" src="https://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
-</iframe>
-</div>