Fix stuff

This commit is contained in:
askiiart 2023-05-09 12:33:37 -05:00
parent c9d0e072e9
commit 81291a2c8f
7 changed files with 8 additions and 7 deletions

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>Marlin Boot Animations</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 id="marlin-boot-animations">Marlin Boot Animations</h1>

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>askiiart's site</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 id="askiiarts-site">askiiart's site</h1>

View file

@ -2,8 +2,9 @@ import os
from pathlib import Path
dir = os.path.dirname(__file__)
print(dir)
os.chdir(dir)
files = [str(item)[:-3] for item in Path(dir).rglob('*.md')]
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)\"')

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>Portfolio</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 id="portfolio">Portfolio</h1>

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>Resume</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 id="resume">Resume</h1>

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>My Stack</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 id="my-stack">My Stack</h1>

View file

@ -3,7 +3,7 @@
<meta content="width=device-width, initial-scale=1" charset="utf-8" />
<link rel="icon" href="/assets/askiiart.gif" type="image/icon">
<title>$title$</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
$body$