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

Commit 3f89ea6

Browse files
committed
Added example into initial-slides.md and skip folders from stash view to prevent errors / creation of images.md file to improve #23 :)
1 parent 3411142 commit 3f89ea6

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: go
22

3-
before_install:
4-
mkdir slides
5-
63
install:
74
go get github.com/franela/goblin
85

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Use local images
7171
----
7272
Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
7373
```
74-
![demoPicture](../../images/demo.png)
74+
![demoPicture](/images/demo.png)
7575
```
7676
or as HTML:
7777
```
78-
<img src="../../images/demo.png">
78+
<img src="/images/demo.png">
7979
```
8080

8181
Getting Help

initial-slides.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ services:
7373

7474
## Local images
7575

76-
![demoPicture](../../images/demo.png)
76+
![demoPicture](/images/demo.png)
7777

7878
Copy images into slides/images/ & include with MD:
7979

8080
```
81-
![demoPicture](../../images/demo.png)
81+
![demoPicture](/images/demo.png)
8282
8383
```
8484
or HTML:
8585

8686
```
87-
<img src="../../images/demo.png">
87+
<img src="/images/demo.png">
8888
8989
```
9090

main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ func NewApp() *gin.Engine {
127127
}
128128
var stash []string
129129
for _, file := range files {
130-
if file.Name() != "images" {
131-
stash = append(stash, file.Name())
132-
}
130+
if file.IsDir() {
131+
continue
132+
}
133+
stash = append(stash, file.Name())
133134
}
134135
c.HTML(200, "stash.tmpl", gin.H{
135136
"stash": stash,

slides/images/demo.png

54.2 KB
Loading

0 commit comments

Comments
 (0)