Skip to content

Commit

Permalink
Added example into initial-slides.md and filtered images folder from …
Browse files Browse the repository at this point in the history
…stash view to prevent errors / creation of images.md file
  • Loading branch information
nmaas87 committed Feb 22, 2018
1 parent 5ec8a2e commit 3411142
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions initial-slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Binary file added slides/images/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3411142

Please sign in to comment.