Improve markdown template
This commit is contained in:
parent
ba1aefa660
commit
c8c84dcb52
4 changed files with 16 additions and 1 deletions
1
backend/data/.gitignore
vendored
1
backend/data/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.sh
|
||||
*.bmp
|
||||
|
||||
|
|
BIN
backend/data/palette.gif
Normal file
BIN
backend/data/palette.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 B |
|
@ -1,3 +1,16 @@
|
|||
---
|
||||
fontfamily: libertinus
|
||||
fontfamilyoptions:
|
||||
- osf
|
||||
- p
|
||||
papersize: a6
|
||||
fontsize: 12pt
|
||||
geometry:
|
||||
- top=5mm
|
||||
- left=5mm
|
||||
- right=5mm
|
||||
...
|
||||
|
||||
# Buongiorno Aldo!
|
||||
Oggi è il {{day}}.{{month}}.{{year}}.
|
||||
|
||||
|
|
|
@ -87,7 +87,8 @@ func serveScreen(res http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
|
||||
log.Println("Converting markdown to pdf.")
|
||||
err = pandoc.Convert("./data/screen.md", "./data/screen.pdf", "-V", "geometry:papersize={3.8in,6in}", "-V", "pagestyle:empty")
|
||||
// err = pandoc.Convert("./data/screen.md", "./data/screen.pdf", "-V", "geometry:papersize={3.8in,6in}", "-V", "pagestyle:empty")
|
||||
err = pandoc.Convert("./data/screen.md", "./data/screen.pdf", "-V", "pagestyle:empty")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue