Add header in pandoc template
This commit is contained in:
parent
cb2faaf1d5
commit
4e6fb0d879
3
Tupfile
3
Tupfile
|
@ -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 |>
|
||||||
|
|
|
@ -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
1
files/Tupfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
:foreach *.pdf |> !tup_preserve |>
|
1
fonts/Tupfile
Normal file
1
fonts/Tupfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
:foreach *.otf |> !tup_preserve |>
|
|
@ -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 \
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
|
@ -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
1
templates/header.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<link rel="icon" type="image/png" href="favicon.png">
|
Loading…
Reference in a new issue