summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-04-28 02:38:57 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-04-28 02:38:57 +0200
commit40df22fabfa82147edcc23dc767ea96dd8e511a5 (patch)
tree903751844d6a27b6609546db76d3a0b301e4e696
parent14bde1ae6b54b7383e485143f17de15c65fe5f9f (diff)
downloadwebsite-40df22fabfa82147edcc23dc767ea96dd8e511a5.tar.xz
Move header to own file and use server side include
-rw-r--r--header.html10
-rw-r--r--index.html13
2 files changed, 11 insertions, 12 deletions
diff --git a/header.html b/header.html
new file mode 100644
index 0000000..370f90b
--- /dev/null
+++ b/header.html
@@ -0,0 +1,10 @@
+<header>
+ <h1><a href="/">Johannes Löthberg</a></h1>
+ <nav>
+ <ul>
+ <li><a href="/">~/</a></li>
+ <li><a href="/blog">blog/</a></li>
+ <li><a href="/contact">contact/</a></li>
+ </ul>
+ </nav>
+</header>
diff --git a/index.html b/index.html
index 2322478..51014e8 100644
--- a/index.html
+++ b/index.html
@@ -7,18 +7,7 @@
<link href="main.css" rel="stylesheet">
</head>
<body>
-
-<header>
- <h1><a href="/">Johannes Löthberg</a></h1>
- <nav>
- <ul>
- <li><a href="/">~/</a></li>
- <li><a href="/blog">blog/</a></li>
- <li><a href="/contact">contact/</a></li>
- </ul>
- </nav>
-</header>
-
+ <!--# include file="header.html" -->
<div class="about">
<h2>About me</h2>
<p>