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

Commit 7f2efa5

Browse files
author
admini
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8314861 + 5ec8a2e commit 7f2efa5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ WARN[0000] Visit http://bob:password1@0.0.0.0:8080
6767
docker run -it -p 8080:8080 -e USER=bob -e PASSWORD=password1 -v $(pwd)/slides:/app/slides msoedov/hacker-slides
6868
```
6969

70+
Use local images
71+
----
72+
Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
73+
```
74+
![demoPicture](../../images/demo.png)
75+
```
76+
or as HTML:
77+
```
78+
<img src="../../images/demo.png">
79+
```
80+
7081
Getting Help
7182
------------
7283

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func NewApp() *gin.Engine {
3131

3232
r.LoadHTMLGlob("templates/*.tmpl")
3333
r.Static("/static", "./static")
34+
r.Static("/images", "./slides/images")
3435

3536
r.GET("/", func(c *gin.Context) {
3637
isNew := c.Query("new")

0 commit comments

Comments
 (0)