Added example into initial-slides.md and skip folders from stash view to prevent errors / creation of images.md file to improve #23 :)
This commit is contained in:
parent
3411142e90
commit
3f89ea6787
5 changed files with 9 additions and 11 deletions
|
@ -1,8 +1,5 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
before_install:
|
|
||||||
mkdir slides
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go get github.com/franela/goblin
|
go get github.com/franela/goblin
|
||||||
|
|
||||||
|
|
|
@ -71,11 +71,11 @@ Use local images
|
||||||
----
|
----
|
||||||
Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
|
Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
|
||||||
```
|
```
|
||||||
![demoPicture](../../images/demo.png)
|
![demoPicture](/images/demo.png)
|
||||||
```
|
```
|
||||||
or as HTML:
|
or as HTML:
|
||||||
```
|
```
|
||||||
<img src="../../images/demo.png">
|
<img src="/images/demo.png">
|
||||||
```
|
```
|
||||||
|
|
||||||
Getting Help
|
Getting Help
|
||||||
|
|
|
@ -73,18 +73,18 @@ services:
|
||||||
|
|
||||||
## Local images
|
## Local images
|
||||||
|
|
||||||
![demoPicture](../../images/demo.png)
|
![demoPicture](/images/demo.png)
|
||||||
|
|
||||||
Copy images into slides/images/ & include with MD:
|
Copy images into slides/images/ & include with MD:
|
||||||
|
|
||||||
```
|
```
|
||||||
![demoPicture](../../images/demo.png)
|
![demoPicture](/images/demo.png)
|
||||||
|
|
||||||
```
|
```
|
||||||
or HTML:
|
or HTML:
|
||||||
|
|
||||||
```
|
```
|
||||||
<img src="../../images/demo.png">
|
<img src="/images/demo.png">
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
7
main.go
7
main.go
|
@ -127,9 +127,10 @@ func NewApp() *gin.Engine {
|
||||||
}
|
}
|
||||||
var stash []string
|
var stash []string
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
if file.Name() != "images" {
|
if file.IsDir() {
|
||||||
stash = append(stash, file.Name())
|
continue
|
||||||
}
|
}
|
||||||
|
stash = append(stash, file.Name())
|
||||||
}
|
}
|
||||||
c.HTML(200, "stash.tmpl", gin.H{
|
c.HTML(200, "stash.tmpl", gin.H{
|
||||||
"stash": stash,
|
"stash": stash,
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 74 KiB |
Loading…
Reference in a new issue