Website Summary Files Commits Branches @commit @diff @stats
path: root / website / layouts / shortcodes / slide.html
diff options
context:
space:
mode:
Commit003000620058fca757f15cf4d8a8bcb14a5264e6 (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-16 08:36:54 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-16 08:36:54 +0300
Files96b748653dfa812dad769b40b63cfb6aa3d59f1a /website/layouts/shortcodes/slide.html
IPL-003000620058fca757f15cf4d8a8bcb14a5264e6.tar
IPL-003000620058fca757f15cf4d8a8bcb14a5264e6.tar.gz
IPL-003000620058fca757f15cf4d8a8bcb14a5264e6.zip
Parentb65dbe28ba20a14de4c194e93284f9f1a4aa8858 (diff)
Remove project copy of reveal-hugo theme files
1 files changed, 0 insertions, 48 deletions
-rw-r--r--website/layouts/shortcodes/slide.html48
diff --git a/website/layouts/shortcodes/slide.html b/website/layouts/shortcodes/slide.html
deleted file mode 100644
index 7bb41ec..0000000
--- a/website/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