diff --git a/.travis.yml b/.travis.yml index 5423fe1..4cefb47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,5 @@ language: go -before_install: - mkdir slides - install: go get github.com/franela/goblin diff --git a/Readme.md b/Readme.md index 7c74425..a77b264 100644 --- a/Readme.md +++ b/Readme.md @@ -71,11 +71,11 @@ Use local images ---- Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown: ``` -![demoPicture](../../images/demo.png) +![demoPicture](/images/demo.png) ``` or as HTML: ``` - + ``` Getting Help diff --git a/initial-slides.md b/initial-slides.md index 058a3c9..f30deca 100644 --- a/initial-slides.md +++ b/initial-slides.md @@ -73,18 +73,18 @@ services: ## Local images -![demoPicture](../../images/demo.png) +![demoPicture](/images/demo.png) Copy images into slides/images/ & include with MD: ``` -![demoPicture](../../images/demo.png) +![demoPicture](/images/demo.png) ``` or HTML: ``` - + ``` diff --git a/main.go b/main.go index 65c322b..96d13e9 100644 --- a/main.go +++ b/main.go @@ -127,9 +127,10 @@ func NewApp() *gin.Engine { } var stash []string for _, file := range files { - if file.Name() != "images" { - stash = append(stash, file.Name()) - } + if file.IsDir() { + continue + } + stash = append(stash, file.Name()) } c.HTML(200, "stash.tmpl", gin.H{ "stash": stash, diff --git a/slides/images/demo.png b/slides/images/demo.png index e0e3250..37876a5 100644 Binary files a/slides/images/demo.png and b/slides/images/demo.png differ