Add header in pandoc template

This commit is contained in:
Fabien Freling 2019-06-10 21:51:04 +02:00
parent cb2faaf1d5
commit 4e6fb0d879
10 changed files with 17 additions and 1 deletions

View file

@ -2,7 +2,10 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=templates/pandoc.html \ --template=templates/pandoc.html \
--css css/default.css \ --css css/default.css \
--include-in-header=templates/header.html \
--include-before-body=templates/nav.html \ --include-before-body=templates/nav.html \
--include-after-body=templates/footer.html \ --include-after-body=templates/footer.html \
%f --output=%o \ %f --output=%o \
|> %B.html |> %B.html
:foreach favicon.png |> !tup_preserve |>

View file

@ -1,6 +1,11 @@
@font-face {
font-family: 'Code New Roman';
src: url('fonts/code_new_roman.otf');
}
body { body {
width: 800px; width: 800px;
font-family: 'Anaheim', sans-serif; font-family: 'CodeNewRomanRegular', sans-serif;
margin: 0px auto 0px auto; margin: 0px auto 0px auto;
background-color: #fdf6e3; background-color: #fdf6e3;
color: #586e75; /*base01*/ color: #586e75; /*base01*/

1
files/Tupfile Normal file
View file

@ -0,0 +1 @@
:foreach *.pdf |> !tup_preserve |>

1
fonts/Tupfile Normal file
View file

@ -0,0 +1 @@
:foreach *.otf |> !tup_preserve |>

View file

@ -2,6 +2,7 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=../../templates/pandoc.html \ --template=../../templates/pandoc.html \
--css ../../css/default.css \ --css ../../css/default.css \
--include-in-header=../../templates/header.html \
--include-before-body=../../templates/nav.html \ --include-before-body=../../templates/nav.html \
--include-after-body=../../templates/footer.html \ --include-after-body=../../templates/footer.html \
%f --output=%o \ %f --output=%o \

View file

@ -2,6 +2,7 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=../../templates/pandoc.html \ --template=../../templates/pandoc.html \
--css ../../css/default.css \ --css ../../css/default.css \
--include-in-header=../../templates/header.html \
--include-before-body=../../templates/nav.html \ --include-before-body=../../templates/nav.html \
--include-after-body=../../templates/footer.html \ --include-after-body=../../templates/footer.html \
%f --output=%o \ %f --output=%o \

View file

@ -2,6 +2,7 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=../../templates/pandoc.html \ --template=../../templates/pandoc.html \
--css ../../css/default.css \ --css ../../css/default.css \
--include-in-header=../../templates/header.html \
--include-before-body=../../templates/nav.html \ --include-before-body=../../templates/nav.html \
--include-after-body=../../templates/footer.html \ --include-after-body=../../templates/footer.html \
%f --output=%o \ %f --output=%o \

View file

@ -2,6 +2,7 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=../../templates/pandoc.html \ --template=../../templates/pandoc.html \
--css ../../css/default.css \ --css ../../css/default.css \
--include-in-header=../../templates/header.html \
--include-before-body=../../templates/nav.html \ --include-before-body=../../templates/nav.html \
--include-after-body=../../templates/footer.html \ --include-after-body=../../templates/footer.html \
%f --output=%o \ %f --output=%o \

View file

@ -2,6 +2,7 @@
pandoc --from markdown --to html \ pandoc --from markdown --to html \
--template=../../templates/pandoc.html \ --template=../../templates/pandoc.html \
--css ../../css/default.css \ --css ../../css/default.css \
--include-in-header=../../templates/header.html \
--include-before-body=../../templates/nav.html \ --include-before-body=../../templates/nav.html \
--include-after-body=../../templates/footer.html \ --include-after-body=../../templates/footer.html \
%f --output=%o \ %f --output=%o \

1
templates/header.html Normal file
View file

@ -0,0 +1 @@
<link rel="icon" type="image/png" href="favicon.png">