Browse Source

Added example into initial-slides.md and filtered images folder from stash view to prevent errors / creation of images.md file

Nico Maas 6 years ago
parent
commit
3411142e90
3 changed files with 23 additions and 1 deletions
  1. 20 0
      initial-slides.md
  2. 3 1
      main.go
  3. BIN
      slides/images/demo.png

+ 20 - 0
initial-slides.md

@@ -69,6 +69,26 @@ services:
 
 ```
 
+--
+
+## Local images
+
+![demoPicture](../../images/demo.png)
+
+Copy images into slides/images/ & include with MD:
+
+```
+![demoPicture](../../images/demo.png)
+
+```
+or HTML:
+
+```
+<img src="../../images/demo.png">
+
+```
+
+
 ---
 
 ## Learn more

+ 3 - 1
main.go

@@ -127,7 +127,9 @@ func NewApp() *gin.Engine {
 		}
 		var stash []string
 		for _, file := range files {
-			stash = append(stash, file.Name())
+      if file.Name() != "images" {
+			 stash = append(stash, file.Name())      
+      }
 		}
 		c.HTML(200, "stash.tmpl", gin.H{
 			"stash": stash,

BIN
slides/images/demo.png