From bfe0272bd787958bea254b8964e7819070904515 Mon Sep 17 00:00:00 2001 From: Jiri Hubacek Date: Tue, 8 May 2018 02:32:05 +0200 Subject: [PATCH] Feature/talks (#12) * Add talks layout - Add archetype for talks page. - Add shortcodes for section, slide. - Add single layout. Resolves: #11 * Update readme with talks --- README.md | 6 +++- archetypes/talks.md | 11 ++++++++ layouts/shortcodes/section.html | 3 ++ layouts/shortcodes/slide.html | 3 ++ layouts/talks/single.html | 50 +++++++++++++++++++++++++++++++++ 5 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 archetypes/talks.md create mode 100644 layouts/shortcodes/section.html create mode 100644 layouts/shortcodes/slide.html create mode 100644 layouts/talks/single.html diff --git a/README.md b/README.md index 71c178c..d426e40 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,12 @@ theme = "coder" # set the theme weight = 1 url = "/posts/" [[menu.main]] - name = "About" + name = "Talks" weight = 2 + url = "/talks/" +[[menu.main]] + name = "About" + weight = 3 url = "/about/" ``` diff --git a/archetypes/talks.md b/archetypes/talks.md new file mode 100644 index 0000000..ffb47d5 --- /dev/null +++ b/archetypes/talks.md @@ -0,0 +1,11 @@ ++++ +draft = true +date = {{ .Date }} +title = "{{ replace .Name "-" " " | title }}" +tags = [] +categories = [] ++++ + +{{% section %}} + +{{% /section %}} diff --git a/layouts/shortcodes/section.html b/layouts/shortcodes/section.html new file mode 100644 index 0000000..178dd4c --- /dev/null +++ b/layouts/shortcodes/section.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/slide.html b/layouts/shortcodes/slide.html new file mode 100644 index 0000000..b39c865 --- /dev/null +++ b/layouts/shortcodes/slide.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/talks/single.html b/layouts/talks/single.html new file mode 100644 index 0000000..a21830f --- /dev/null +++ b/layouts/talks/single.html @@ -0,0 +1,50 @@ + + + + + + + + {{ with .Site.Params.author }}{{ end }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.keywords }}{{ end }} + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + + + + + + + + + + + + + + + {{ if .RSSLink }} + + + {{ end }} + + {{ .Hugo.Generator }} + + + +
+
+ {{ .Content }} +
+
+ + +