From ea6082d632122e42ad118d514f87665c34ddf6c8 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Wed, 29 Aug 2018 21:02:12 +0300 Subject: Initial commit - natrium: e006b529af8bee9422e4b2f8af0c6be4e8b41001 - reveal-hugo: 3bd0dbabe99e13a6c4970bbbfea12b0f084a0d1a --- layouts/_default/baseof.reveal.html | 87 +++++++++++++++++++++++++++++++++++++ layouts/_default/index.reveal.html | 3 ++ layouts/_default/list.reveal.html | 3 ++ layouts/_default/single.reveal.html | 0 4 files changed, 93 insertions(+) create mode 100644 layouts/_default/baseof.reveal.html create mode 100644 layouts/_default/index.reveal.html create mode 100644 layouts/_default/list.reveal.html create mode 100644 layouts/_default/single.reveal.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.reveal.html b/layouts/_default/baseof.reveal.html new file mode 100644 index 0000000..1e3868b --- /dev/null +++ b/layouts/_default/baseof.reveal.html @@ -0,0 +1,87 @@ + +{{- $reveal_cdn := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}} +{{- $highlight_cdn := "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}} + + + + {{ or .Page.Title .Site.Title }} + + + + + + + + {{- $theme := or .Page.Params.reveal_hugo.theme .Site.Params.reveal_hugo.theme .Site.Data.reveal_hugo.defaults.theme "black" -}} + {{- $custom_theme := or .Page.Params.reveal_hugo.custom_theme .Site.Params.reveal_hugo.custom_theme -}} + {{- if $custom_theme -}} + + {{ else -}} + + {{- end -}} + + {{- $highlight_theme := or .Page.Params.reveal_hugo.highlight_theme .Site.Params.reveal_hugo.highlight_theme .Site.Data.reveal_hugo.defaults.highlight_theme "default" -}} + + + + + {{- partial "reveal-hugo/head" . -}} + + + {{- block "main" . -}}{{- end -}} + + + + + + + + + {{ partial "reveal-hugo/body" . }} + + diff --git a/layouts/_default/index.reveal.html b/layouts/_default/index.reveal.html new file mode 100644 index 0000000..8faa735 --- /dev/null +++ b/layouts/_default/index.reveal.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ partial "reveal-hugo/slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }} +{{ end }} diff --git a/layouts/_default/list.reveal.html b/layouts/_default/list.reveal.html new file mode 100644 index 0000000..6c3c470 --- /dev/null +++ b/layouts/_default/list.reveal.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ partial "reveal-hugo/slides" (union (slice .Page) .Pages) }} +{{ end }} diff --git a/layouts/_default/single.reveal.html b/layouts/_default/single.reveal.html new file mode 100644 index 0000000..e69de29 -- cgit v1.3.1-26-gb76a