From f1a15c793b1a04aebd2eb2e90de176b8d387d78c Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sat, 15 Sep 2018 16:37:30 +0300 Subject: Moved slide template --- website/README.md | 6 ++++-- website/content/slides/_index.md | 19 ------------------- website/content/slides/template/_index.md | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 21 deletions(-) delete mode 100644 website/content/slides/_index.md create mode 100644 website/content/slides/template/_index.md diff --git a/website/README.md b/website/README.md index 8ad0142..319d6fb 100644 --- a/website/README.md +++ b/website/README.md @@ -34,11 +34,13 @@ The normal hugo way of creating new posts applies hugo new content/posts/post.md hugo new content/page/page.md +#### Creating new slides + Creating new slides requires using a different template. You can use the *content/slides* as boilerplate. - cp -R content/slides content/myslides - edit content/myslides/_index.md + cp -R content/slides/template content/slides/myslides + edit content/slides/myslides/_index.md ### Checking out changes diff --git a/website/content/slides/_index.md b/website/content/slides/_index.md deleted file mode 100644 index e14fb36..0000000 --- a/website/content/slides/_index.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: "Intro Slides" -date: 2018-08-02T17:45:53+03:00 -draft: false -outputs: ["Reveal"] ---- - -# Test Hugo reveal tests - -- Title -- Bullet - ---- - -# Extra slide - -FMI course stuff. - - diff --git a/website/content/slides/template/_index.md b/website/content/slides/template/_index.md new file mode 100644 index 0000000..46f559f --- /dev/null +++ b/website/content/slides/template/_index.md @@ -0,0 +1,27 @@ +--- +title: "Intro Slides" +date: 2018-08-02T17:45:53+03:00 +draft: false +outputs: ["Reveal"] +--- + +# Test Hugo reveal tests + +- Title +- Bullet + +--- + +# Extra slide + +FMI course stuff. + +--- + + void f(int x) { + if (x) { + } + } + +--- + -- cgit v1.3.1-23-gd82d