This repository was archived by the owner on Sep 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-11
lines changed
Expand file tree Collapse file tree 5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 11language : go
22
3- before_install :
4- mkdir slides
5-
63install :
74 go get github.com/franela/goblin
85
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ Use local images
7171----
7272Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
7373```
74- 
74+ 
7575```
7676or as HTML:
7777```
78- <img src="../.. /images/demo.png">
78+ <img src="/images/demo.png">
7979```
8080
8181Getting Help
Original file line number Diff line number Diff line change @@ -73,18 +73,18 @@ services:
7373
7474## Local images
7575
76- ![ demoPicture] ( ../.. /images/demo.png)
76+ ![ demoPicture] ( /images/demo.png )
7777
7878Copy images into slides/images/ & include with MD:
7979
8080```
81- 
81+ 
8282
8383```
8484or HTML:
8585
8686```
87- <img src="../.. /images/demo.png">
87+ <img src="/images/demo.png">
8888
8989```
9090
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments