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

Commit 9509610

Browse files
authored
Merge pull request #35 from nmaas87/master
Added example into initial-slides.md and filtered images folder from …
2 parents 5ec8a2e + 3f89ea6 commit 9509610

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
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: 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ func NewApp() *gin.Engine {
127127
}
128128
var stash []string
129129
for _, file := range files {
130+
if file.IsDir() {
131+
continue
132+
}
130133
stash = append(stash, file.Name())
131134
}
132135
c.HTML(200, "stash.tmpl", gin.H{

slides/images/demo.png

74.1 KB
Loading

0 commit comments

Comments
 (0)