Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
2 files changed, 12 insertions, 2 deletions
-rw-r--r--website/README.md6
-rw-r--r--website/content/slides/template/_index.md (renamed from website/content/slides/_index.md)8
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/template/_index.md
index e14fb36..46f559f 100644
--- a/website/content/slides/_index.md
+++ b/website/content/slides/template/_index.md
@@ -16,4 +16,12 @@ outputs: ["Reveal"]
FMI course stuff.
+---
+
+ void f(int x) {
+ if (x) {
+ }
+ }
+
+---