4 ms·
For simply including a common header & footer in pages, any server side include (SSI) compatible server will do: Nginx, Apache, or Caddy. With SSI, your templa
by VoodooJuJu 3y ago
For simply including a common header & footer in pages, any server side include (SSI) compatible server will do: Nginx, Apache, or Caddy.
With SSI, your template for every page would basically look like this:
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<!--#include virtual="/ssi/head.html" -->
<title></title>
<meta name="description" content="">
</head>
<body>
<header>
<!--#include virtual="/ssi/header.html" -->
</header>
<main>
</main>
<footer>
<!--#include virtual="/ssi/footer.html" -->
</footer>
</body>
</html>
Making your own SSG is another good solution. They're easy to make, and you can tailor them to your own particular needs.