Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (60 sloc) 1.8 KB
dnl ======================================================================
dnl Defines M4 macros for generating an HTML page
dnl (c) 2018, Eamonn O'Brien-Strain
dnl ======================================================================
dnl User curlies brackets as quote delimiters
dnl The page template used by all pages on the site
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="UTF-8">
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/blog.css"/>
<link href="|Merriweather+Sans|Source+Code+Pro"
<script src="js/app.js" defer></script>
<h2>Eamonn O'Brien-Strain</h2>
<nav class="up">
<a href="index.html">Home</a> |
<a href="">Twitter</a> |
<a href="">LinkedIn</a>
<li class="article">
dnl An article page, which has previous/next links at the bottom
define({ARTICLE}, {PAGE({DATE_$1 TITLE_$1}, {$2}, {
<li class="left">
<a class="go-left" href="indir(DATE_{}eval($1+1)).html">indir(TITLE_{}eval($1+1))</a>
<li class="right">
<a class="go-right" href="indir(DATE_{}eval($1-1)).html">indir(TITLE_{}eval($1-1))</a>
dnl Used in to give the metadata for pages
define({PAGEREF}, {define(DATE_$1,$2)define(TITLE_$1,$3)})