Compare commits
2 Commits
4395dea1fd
...
ed93d0446b
Author | SHA1 | Date | |
---|---|---|---|
ed93d0446b | |||
bcad5654b9 |
4
build.py
4
build.py
@ -81,9 +81,7 @@ def process_markdown_files():
|
|||||||
page_url = page_url[:-len('index.html')]
|
page_url = page_url[:-len('index.html')]
|
||||||
|
|
||||||
html = markdown.markdown(text, extensions=md_extensions, output_format='html5')
|
html = markdown.markdown(text, extensions=md_extensions, output_format='html5')
|
||||||
output = template.replace('__TITLE_GOES_HERE__', title)
|
output = template.format(title=title, content=html, page_url=page_url)
|
||||||
output = output.replace('__CONTENT_GOES_HERE__', html)
|
|
||||||
output = output.replace('__PAGE_URL_GOES_HERE__', page_url)
|
|
||||||
|
|
||||||
os.makedirs(out_dirpath, exist_ok=True)
|
os.makedirs(out_dirpath, exist_ok=True)
|
||||||
print_file(markdown_filename, out_fullpath)
|
print_file(markdown_filename, out_fullpath)
|
||||||
|
@ -39,7 +39,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
padding-top: 36px;
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page-container {
|
#page-container {
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/png" href="/favicon.ico">
|
<link rel="icon" type="image/png" href="/favicon.ico">
|
||||||
<link rel="canonical" href="https://www.mcmillen.dev/__PAGE_URL_GOES_HERE__">
|
<link rel="canonical" href="https://www.mcmillen.dev/{page_url}">
|
||||||
|
|
||||||
<title>__TITLE_GOES_HERE__</title>
|
<title>{title}</title>
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=block" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=block" rel="stylesheet">
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
__CONTENT_GOES_HERE__
|
{content}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user