Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit 3411142

Browse files
committed
Added example into initial-slides.md and filtered images folder from stash view to prevent errors / creation of images.md file
1 parent 5ec8a2e commit 3411142

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

initial-slides.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,26 @@ services:
6969
7070
```
7171

72+
--
73+
74+
## Local images
75+
76+
![demoPicture](../../images/demo.png)
77+
78+
Copy images into slides/images/ & include with MD:
79+
80+
```
81+
![demoPicture](../../images/demo.png)
82+
83+
```
84+
or HTML:
85+
86+
```
87+
<img src="../../images/demo.png">
88+
89+
```
90+
91+
7292
---
7393

7494
## Learn more

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ func NewApp() *gin.Engine {
127127
}
128128
var stash []string
129129
for _, file := range files {
130-
stash = append(stash, file.Name())
130+
if file.Name() != "images" {
131+
stash = append(stash, file.Name())
132+
}
131133
}
132134
c.HTML(200, "stash.tmpl", gin.H{
133135
"stash": stash,

slides/images/demo.png

19.9 KB
Loading

0 commit comments

Comments
 (0)