Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / shortcodes
diff options
context:
space:
mode:
Commit3245f1f1404785d92c21eb381c08dee5a4be6bb7 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Files3c245582fb5a2a9eaf8518f7272c03a6aaa2f635 /layouts/shortcodes
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar.gz
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.zip
Parentae12c0a482298e4da9b816137ceb6131c7d4b9e4 (diff)
Moved site to website folder
diff --git a/layouts/shortcodes/frag.html b/layouts/shortcodes/frag.html
deleted file mode 100644
index c1de8c8..0000000
--- a/layouts/shortcodes/frag.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<span class='fragment {{ .Get "class" }}'
- {{ with .Get "index" }}data-fragment-index='{{ . }}'{{ end }}>
- {{ .Get "c" }}
-</span> \ No newline at end of file
diff --git a/layouts/shortcodes/fragment.html b/layouts/shortcodes/fragment.html
deleted file mode 100644
index dc41e03..0000000
--- a/layouts/shortcodes/fragment.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<span class='fragment {{ .Get "class" }}'
- {{ with .Get "index" }}data-fragment-index='{{ . }}'{{ end }}>
- {{ .Inner }}
-</span> \ No newline at end of file
diff --git a/layouts/shortcodes/markdown.html b/layouts/shortcodes/markdown.html
deleted file mode 100644
index f5effbc..0000000
--- a/layouts/shortcodes/markdown.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<section data-noprocess data-markdown
- data-separator="^\r?\n---\r?\n$"
- data-separator-vertical="^\r?\n------\r?\n$"
- data-separator-notes="notes?:">
- <script type="text/template">
- {{ .Inner }}
- </script>
-</section> \ No newline at end of file
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html
deleted file mode 100644
index 5d28fce..0000000
--- a/layouts/shortcodes/note.html
+++ /dev/null
@@ -1 +0,0 @@
-<aside class="notes">{{ .Inner }}</aside> \ No newline at end of file
diff --git a/layouts/shortcodes/section.html b/layouts/shortcodes/section.html
deleted file mode 100644
index 43611a4..0000000
--- a/layouts/shortcodes/section.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<section data-shortcode-section>
-{{ .Inner }}
-</section> \ No newline at end of file
diff --git a/layouts/shortcodes/slide.html b/layouts/shortcodes/slide.html
deleted file mode 100644
index 7bb41ec..0000000
--- a/layouts/shortcodes/slide.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{{- $scratch := .Scratch -}}
-{{- $scratch.Set "slides" slice -}}
-{{- if len .Inner -}}
- {{- $scratch.Add "slides" .Inner -}}
-{{- end -}}
-{{- $content := .Get "content" -}}
-{{- if $content -}}
- {{- $lookup := split $content "." }}
- {{- $html := index .Page.Site.Data (index $lookup 0) (index $lookup 1) | markdownify -}}
- {{- $slides := split $html "<hr />" -}}
- {{- range $slides -}}
- {{- $scratch.Add "slides" . -}}
- {{- end -}}
-{{- end -}}
-{{- $params := . -}}
-{{- $noPrefix := slice "id" "class" -}}
-{{- $noOutput := slice "content" "template" -}}
-{{- range $scratch.Get "slides" }}
-<section data-noprocess data-shortcode-slide
- {{- $template := $params.Get "template" -}}
- {{- if $template -}}
- {{- $scratch.Add "templateParams" (slice $.Site.Params.reveal_hugo.templates) -}}
- {{- if ne $.Page.File.LogicalName "_index.md" -}}
- {{- $scratch.Add "templateParams" (slice ($.Site.GetPage $.Page.Section).Params.reveal_hugo.templates) -}}
- {{- end -}}
- {{- $scratch.Add "templateParams" (slice $.Page.Params.reveal_hugo.templates) -}}
- {{- range ($scratch.Get "templateParams") -}}
- {{- if (ne . nil) -}}
- {{- range $key, $value := (index . $template) -}}
- {{- $scratch.SetInMap "template" $key $value | safeHTMLAttr -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $key, $value := ($scratch.Get "template") }}
- {{- $attrName := cond (in $noPrefix $key) $key (delimit (slice "data" $key) "-") }}
- {{ $attrName | safeHTMLAttr }}="{{ $value }}"
- {{- end }}
- data-template="{{ $template }}"
- {{- end -}}
- {{- range $key, $value := $.Params -}}
- {{- if not (in $noOutput $key) -}}
- {{- $attrName := cond (in $noPrefix $key) $key (delimit (slice "data" $key) "-") }}
- {{ $attrName | safeHTMLAttr }}="{{ $value }}"
- {{- end -}}
- {{- end -}}>
- {{ . | safeHTML }}
-</section>
-{{- end -}} \ No newline at end of file