feat: separated footer, header and <head> files

This commit is contained in:
Vitor Gonçalves 2023-06-19 00:04:18 -03:00
parent 33d2417511
commit a46bff2b7d
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
4 changed files with 17 additions and 14 deletions

4
_footer.html Normal file
View File

@ -0,0 +1,4 @@
<footer class=block class="text">
<p>made by <a href="/">~vitorg</a> with love.<br>
check out <a href="https://vern.cc">~vern</a>!</p>
</footer>

2
_head.html Normal file
View File

@ -0,0 +1,2 @@
<meta charset="UTF-8">
<link rel="stylesheet" href="/style.css">

8
_header.html Normal file
View File

@ -0,0 +1,8 @@
<header class="block" class="text">
<h1><a href="/">~vitorg</a></h1>
<nav>
<a href="/about">about me</a>
<a href="/blog">blog</a>
<a href="/tinylog">tinylog</a>
</nav>
</header>

View File

@ -1,19 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- #include file="_head.html" -->
<title>~vitorg</title>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<header class="block" class="text">
<h1><a href="/">~vitorg</a></h1>
<nav>
<a href="/about">about me</a>
<a href="/blog">blog</a>
<a href="/tinylog">tinylog</a>
</nav>
</header>
<!-- #include file="_header.html" -->
<article class="block">
<div class="text">
@ -24,9 +16,6 @@
</div>
</article>
<footer class=block class="text">
<p>made by <a href="/">~vitorg</a> with love.<br>
check out <a href="https://vern.cc">~vern</a>!</p>
</footer>
<!-- #include file="_footer.html" -->
</body>
</html>