Export with front matter from Joplin. Read front matter with a tool called yq,
Useful links:
Major thank you to: https://roneo.org/en/hugo-edit-yaml-files-from-the-cli-with-yq/
PDF output template: https://github.com/Wandmalfarbe/pandoc-latex-template
DejaVuSerif: https://www.fontsquirrel.com/fonts/dejavu-serif
Dateformat Guide: https://mikefarah.gitbook.io/yq/operators/datetime#date-time-formattings
Indepth: https://pkg.go.dev/time#pkg-constants
Frontmatter using YQ: https://mikefarah.gitbook.io/yq/usage/front-matter