diff --git a/Shakefile.hs b/Shakefile.hs index 4c22f84..4bda55e 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -269,6 +269,7 @@ genHtmlAction genHtmlAction getPost getTemplate out = do let tplname = case takeDirectory1 (dropDirectory1 out) of "posts" -> "post.mustache" + "slides" -> "slide.mustache" "drafts" -> "post.mustache" _ -> "main.mustache" template <- getTemplate ("templates" tplname) diff --git a/src/css/slides.css b/src/css/slides.css index 7e2e47a..61b1517 100644 --- a/src/css/slides.css +++ b/src/css/slides.css @@ -1,7 +1,28 @@ -h1, h2 { - border: solid; - padding: 10em 1em; +#preamble h1, #preamble h2 { + padding: 0; margin: 1em 0; - text-align: center; + border-top: none; } -h3 { border-top: solid; margin-top: 2em; } +#content { border-left: solid; border-right: solid; margin-top: 2rem;} +#content :first-child { margin-top: 0; } +h1,h2,h3,h4,h5,h6 { font-size: 1rem; } +h1, h2 { + border-top: solid; + text-align: center; + width: calc(100% + 2rem); + position: relative; + left: -1rem; + box-sizing: border-box; + padding: 7rem 1rem 6rem 0; +} +h3 { border-top: solid; + width: calc(100% + 2rem); + box-sizing: border-box; + position: relative; + left: -1rem; + margin-top: 2em; + padding-top: 2em; + padding-left: 1rem; + padding-right: 1rem; + color + } diff --git a/templates/slide.mustache b/templates/slide.mustache new file mode 100644 index 0000000..ff7ed5c --- /dev/null +++ b/templates/slide.mustache @@ -0,0 +1,67 @@ + + + + + + {{title}} + + + + + + + + +
+
+ | +
+
+
+
+ +
+

{{title}}

+
+ on + + {{author}}'s blog - + source - + txt - + pdf - + +
+
+ {{description}} +
+
+
+
+ {{{body}}} +
+
+
+ +
+
+
+ +