Fix stuff
This commit is contained in:
parent
c9d0e072e9
commit
81291a2c8f
7 changed files with 8 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>Marlin Boot Animations</title>
|
<title>Marlin Boot Animations</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="marlin-boot-animations">Marlin Boot Animations</h1>
|
<h1 id="marlin-boot-animations">Marlin Boot Animations</h1>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>askiiart's site</title>
|
<title>askiiart's site</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="askiiarts-site">askiiart's site</h1>
|
<h1 id="askiiarts-site">askiiart's site</h1>
|
||||||
|
|
|
@ -2,8 +2,9 @@ import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
dir = os.path.dirname(__file__)
|
dir = os.path.dirname(__file__)
|
||||||
|
print(dir)
|
||||||
os.chdir(dir)
|
os.chdir(dir)
|
||||||
files = [str(item)[:-3] for item in Path(dir).rglob('*.md')]
|
files = [str(item)[:-3] for item in Path(dir).rglob('*.md')]
|
||||||
|
|
||||||
for item in files:
|
for item in files:
|
||||||
os.system(f'pandoc -f markdown-smart --data-dir . --template template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"')
|
os.system(f'pandoc -f markdown-smart --data-dir . --template {dir}/template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"')
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>Portfolio</title>
|
<title>Portfolio</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="portfolio">Portfolio</h1>
|
<h1 id="portfolio">Portfolio</h1>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>Resume</title>
|
<title>Resume</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="resume">Resume</h1>
|
<h1 id="resume">Resume</h1>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>My Stack</title>
|
<title>My Stack</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="my-stack">My Stack</h1>
|
<h1 id="my-stack">My Stack</h1>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
|
||||||
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
|
||||||
<title>$title$</title>
|
<title>$title$</title>
|
||||||
<link href="style.css" type="text/css" rel="stylesheet" />
|
<link href="/style.css" type="text/css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
$body$
|
$body$
|
||||||
|
|
Loading…
Reference in a new issue