use ssi for more pages
authorAmin Bandali <bandali@gnu.org>
Sat, 28 Mar 2020 05:20:07 +0000 (01:20 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 28 Mar 2020 05:20:07 +0000 (01:20 -0400)
404.html
cv.html
ssi/pre.html
ssi/pre0.html [new file with mode: 0644]

index febc3ef..942881c 100644 (file)
--- a/404.html
+++ b/404.html
@@ -1,16 +1,7 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8"/>
-<meta name=viewport content="width=device-width, initial-scale=1"/>
-<title>404 Not Found</title>
-<link rel="stylesheet" href="/style.css"/>
-</head>
-<body>
+<!--# set var="title" value="404 Not Found" -->
+<!--# include virtual="/ssi/pre0.html" -->
 <nav><a href="/">bandali.eu.org</a></nav>
 <main>
 <h1>404</h1>
 <p>Sorry, that page does not exist.</p>
-</main>
-</body>
-</html>
+<!--# include virtual="/ssi/post.html" -->
diff --git a/cv.html b/cv.html
index 69c90ed..c0ba44c 100644 (file)
--- a/cv.html
+++ b/cv.html
@@ -1,13 +1,5 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8"/>
-<meta name="viewport" content="width=device-width, initial-scale=1"/>
-<title>Curriculum vitae &mdash; Amin Bandali</title>
-<link rel="icon" href="/gnu.ico"/>
-<link rel="stylesheet" href="/style.css"/>
-</head>
-<body>
+<!--# set var="title" value="Curriculum vitae" -->
+<!--# include virtual="/ssi/pre0.html" -->
 <main>
 <h1>Curriculum vitae (<a href="bandali-cv.pdf">PDF</a>)</h1>
 
@@ -68,6 +60,4 @@ Department, York University | Fall 2017</h3>
 <p>Teaching Assistant</p>
 <p><abbr title="Net-Centric Introduction to Computing">EECS 1012</abbr>:
 TA in Fall 2017</p>
-</main>
-</body>
-</html>
+<!--# include virtual="/ssi/post.html" -->
index d4e96d9..8af1922 100644 (file)
@@ -1,17 +1,4 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8"/>
-<meta name="viewport" content="width=device-width, initial-scale=1"/>
-<!--# if expr="$title = home" -->
-<title>Amin Bandali's Personal Site</title>
-<!--# else -->
-<title><!--# echo var="title" --> &mdash; Amin Bandali</title>
-<!--# endif -->
-<link rel="icon" href="/gnu.ico"/>
-<link rel="stylesheet" href="/style.css"/>
-</head>
-<body>
+<!--# include virtual="/ssi/pre0.html" -->
 <header><!--# if expr="$title = home" -->
 <h1>Amin Bandali's Personal Site</h1>
 <!--# else -->
diff --git a/ssi/pre0.html b/ssi/pre0.html
new file mode 100644 (file)
index 0000000..04dab25
--- /dev/null
@@ -0,0 +1,16 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<!--# if expr="$title = home" -->
+<title>Amin Bandali's Personal Site</title>
+<!--# elif expr="$title = 404 Not Found" -->
+<title>404 Not Found</title>
+<!--# else -->
+<title><!--# echo var="title" --> &mdash; Amin Bandali</title>
+<!--# endif -->
+<link rel="icon" href="/gnu.ico"/>
+<link rel="stylesheet" href="/style.css"/>
+</head>
+<body>