Improve markdown template

This commit is contained in:
Andrea Fazzi 2022-04-26 11:25:39 +02:00
parent ba1aefa660
commit c8c84dcb52
4 changed files with 16 additions and 1 deletions

View file

@ -1,2 +1,3 @@
*.sh *.sh
*.bmp

BIN
backend/data/palette.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

View file

@ -1,3 +1,16 @@
---
fontfamily: libertinus
fontfamilyoptions:
- osf
- p
papersize: a6
fontsize: 12pt
geometry:
- top=5mm
- left=5mm
- right=5mm
...
# Buongiorno Aldo! # Buongiorno Aldo!
Oggi è il {{day}}.{{month}}.{{year}}. Oggi è il {{day}}.{{month}}.{{year}}.

View file

@ -87,7 +87,8 @@ func serveScreen(res http.ResponseWriter, req *http.Request) {
} }
log.Println("Converting markdown to pdf.") 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 { if err != nil {
panic(err) panic(err)
} }