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

Commit

Permalink
Merge pull request #35 from nmaas87/master
Browse files Browse the repository at this point in the history
Added example into initial-slides.md and filtered images folder from …
  • Loading branch information
msoedov authored Feb 24, 2018
2 parents 5ec8a2e + 3f89ea6 commit 9509610
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
language: go

before_install:
mkdir slides

install:
go get github.com/franela/goblin

Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
![demoPicture](../../images/demo.png)
![demoPicture](/images/demo.png)
```
or as HTML:
```
<img src="../../images/demo.png">
<img src="/images/demo.png">
```

Getting Help
Expand Down
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
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func NewApp() *gin.Engine {
}
var stash []string
for _, file := range files {
if file.IsDir() {
continue
}
stash = append(stash, file.Name())
}
c.HTML(200, "stash.tmpl", gin.H{
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 9509610

Please sign in to comment.