From 09272a9f16f6875a7ecff8ba834ded256c5897bf Mon Sep 17 00:00:00 2001 From: Felix Breidenstein Date: Tue, 5 Nov 2019 02:19:12 +0100 Subject: [PATCH] Added tailwind-css and description --- main.go | 9 +++++---- template.html | 42 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index eb2368c..e9da484 100644 --- a/main.go +++ b/main.go @@ -11,9 +11,10 @@ import ( ) type Talk struct { - Title string - Preview string - Path string + Title string + Preview string + Path string + Description string } func generatePreview(path string) Talk { @@ -26,7 +27,7 @@ func generatePreview(path string) Talk { mw.SetIteratorIndex(0) mw.SetImageFormat("jpg") mw.WriteImage(imagePath) - return Talk{Title: result[1], Preview: imagePath, Path: path} + return Talk{Title: result[1], Preview: imagePath, Path: path, Description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."} } func main() { diff --git a/template.html b/template.html index d2333b6..451caa9 100644 --- a/template.html +++ b/template.html @@ -1,5 +1,37 @@ -{{ range . }} -

{{ .Title }}

- -Download -{{ end }} + + + + + + slides.fleaz.me + + + + + +
+ {{ range . }} + + {{ end }} +
+ + +