Pass config to template
This commit is contained in:
parent
636ac88daf
commit
874fb9591e
@ -57,7 +57,7 @@ def get_pandoc_page(page):
|
|||||||
template = data['template']
|
template = data['template']
|
||||||
with open(f'{path}/render.html', 'r') as f:
|
with open(f'{path}/render.html', 'r') as f:
|
||||||
inserted = f.read()
|
inserted = f.read()
|
||||||
return render_template(template, markdown=inserted)
|
return render_template(template, markdown=inserted, config=data)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
@ -38,6 +38,8 @@ a {
|
|||||||
white-space: pre; /* for some weird reason this affects pre blocks */
|
white-space: pre; /* for some weird reason this affects pre blocks */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BEGIN ALGORITHMICA OLD STYLE */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* color: #444; */
|
/* color: #444; */
|
||||||
font-family: "Times New Roman", Times, "Tinos", serif;
|
font-family: "Times New Roman", Times, "Tinos", serif;
|
||||||
@ -544,6 +546,10 @@ a[href=''] {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* END OLD ALGORITHMICA STYLE */
|
||||||
|
|
||||||
|
/* BEGIN PANDOC EMBEDDED STYLE FOR CODE */
|
||||||
|
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
span.underline{text-decoration: underline;}
|
span.underline{text-decoration: underline;}
|
||||||
@ -614,4 +620,4 @@ a[href=''] {
|
|||||||
code span.vs { color: #4070a0; } /* VerbatimString */
|
code span.vs { color: #4070a0; } /* VerbatimString */
|
||||||
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
|
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
|
||||||
|
|
||||||
|
/* END PANDOC EMBEDDED STYLE FOR CODE */
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div class="pagehead">
|
||||||
|
</div>
|
||||||
|
<div class="pagebody">
|
||||||
{{markdown|safe}}
|
{{markdown|safe}}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user