Improve code

This commit is contained in:
Augusto Gunsch
2022-01-15 16:55:28 -03:00
parent 6c6121a849
commit ae73db13d4
6 changed files with 100 additions and 91 deletions

View File

@@ -1,18 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="stylesheet.css"/>
<title>${title}</title>
</head>
<body>
<header>
<h1 id="cabinet">Cabinet file manager</h1>
<a class="button" id="back" href="../index.html">&larr; Back</a>
<span id="path">${path}</span>
</header>
<main>
${content}
</main>
</body>
</html>

View File

@@ -2,14 +2,14 @@
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="stylesheet.css"/>
<link rel="stylesheet" href="${root}stylesheet.css"/>
<title>${title}</title>
</head>
<body>
<header>
<h1 id="cabinet">Cabinet file manager</h1>
<div>
<a class="button" id="back" href="index.html">&larr; Back</a>
<a class="button" id="back" href="${root}index.html">&larr; Back</a>
<span id="path">${path}</span>
<a class="button" id="pdf" href="${pdf}">&darr; PDF</a>
</div>

16
templates/index.html Normal file
View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="stylesheet.css"/>
<title>Cabinet</title>
</head>
<body>
<header>
<h1 style="margin: 0;" id="cabinet">Cabinet file manager</h1>
</header>
<body>
${toc}
</body>
</body>
</html>