From 4e6fb0d87958f502a65986a7f3f0e2f2815798d1 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Mon, 10 Jun 2019 21:51:04 +0200 Subject: [PATCH] Add header in pandoc template --- Tupfile | 3 +++ css/default.css | 7 ++++++- files/Tupfile | 1 + fonts/Tupfile | 1 + projects/dawnchaos/Tupfile | 1 + projects/maestro/Tupfile | 1 + projects/oboy/Tupfile | 1 + projects/trailr/Tupfile | 1 + projects/whereiscar/Tupfile | 1 + templates/header.html | 1 + 10 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 files/Tupfile create mode 100644 fonts/Tupfile create mode 100644 templates/header.html diff --git a/Tupfile b/Tupfile index 2349037..1c9c14b 100644 --- a/Tupfile +++ b/Tupfile @@ -2,7 +2,10 @@ pandoc --from markdown --to html \ --template=templates/pandoc.html \ --css css/default.css \ + --include-in-header=templates/header.html \ --include-before-body=templates/nav.html \ --include-after-body=templates/footer.html \ %f --output=%o \ |> %B.html + +:foreach favicon.png |> !tup_preserve |> diff --git a/css/default.css b/css/default.css index 46686a6..17372db 100644 --- a/css/default.css +++ b/css/default.css @@ -1,6 +1,11 @@ +@font-face { +font-family: 'Code New Roman'; +src: url('fonts/code_new_roman.otf'); +} + body { width: 800px; - font-family: 'Anaheim', sans-serif; + font-family: 'CodeNewRomanRegular', sans-serif; margin: 0px auto 0px auto; background-color: #fdf6e3; color: #586e75; /*base01*/ diff --git a/files/Tupfile b/files/Tupfile new file mode 100644 index 0000000..56d8e48 --- /dev/null +++ b/files/Tupfile @@ -0,0 +1 @@ +:foreach *.pdf |> !tup_preserve |> diff --git a/fonts/Tupfile b/fonts/Tupfile new file mode 100644 index 0000000..2c777a4 --- /dev/null +++ b/fonts/Tupfile @@ -0,0 +1 @@ +:foreach *.otf |> !tup_preserve |> diff --git a/projects/dawnchaos/Tupfile b/projects/dawnchaos/Tupfile index 84beffe..b8b175d 100644 --- a/projects/dawnchaos/Tupfile +++ b/projects/dawnchaos/Tupfile @@ -2,6 +2,7 @@ pandoc --from markdown --to html \ --template=../../templates/pandoc.html \ --css ../../css/default.css \ + --include-in-header=../../templates/header.html \ --include-before-body=../../templates/nav.html \ --include-after-body=../../templates/footer.html \ %f --output=%o \ diff --git a/projects/maestro/Tupfile b/projects/maestro/Tupfile index 84beffe..b8b175d 100644 --- a/projects/maestro/Tupfile +++ b/projects/maestro/Tupfile @@ -2,6 +2,7 @@ pandoc --from markdown --to html \ --template=../../templates/pandoc.html \ --css ../../css/default.css \ + --include-in-header=../../templates/header.html \ --include-before-body=../../templates/nav.html \ --include-after-body=../../templates/footer.html \ %f --output=%o \ diff --git a/projects/oboy/Tupfile b/projects/oboy/Tupfile index 84beffe..b8b175d 100644 --- a/projects/oboy/Tupfile +++ b/projects/oboy/Tupfile @@ -2,6 +2,7 @@ pandoc --from markdown --to html \ --template=../../templates/pandoc.html \ --css ../../css/default.css \ + --include-in-header=../../templates/header.html \ --include-before-body=../../templates/nav.html \ --include-after-body=../../templates/footer.html \ %f --output=%o \ diff --git a/projects/trailr/Tupfile b/projects/trailr/Tupfile index 84beffe..b8b175d 100644 --- a/projects/trailr/Tupfile +++ b/projects/trailr/Tupfile @@ -2,6 +2,7 @@ pandoc --from markdown --to html \ --template=../../templates/pandoc.html \ --css ../../css/default.css \ + --include-in-header=../../templates/header.html \ --include-before-body=../../templates/nav.html \ --include-after-body=../../templates/footer.html \ %f --output=%o \ diff --git a/projects/whereiscar/Tupfile b/projects/whereiscar/Tupfile index 84beffe..b8b175d 100644 --- a/projects/whereiscar/Tupfile +++ b/projects/whereiscar/Tupfile @@ -2,6 +2,7 @@ pandoc --from markdown --to html \ --template=../../templates/pandoc.html \ --css ../../css/default.css \ + --include-in-header=../../templates/header.html \ --include-before-body=../../templates/nav.html \ --include-after-body=../../templates/footer.html \ %f --output=%o \ diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..f99c190 --- /dev/null +++ b/templates/header.html @@ -0,0 +1 @@ +