Commit 40aa0f51 authored by Michael Murtaugh's avatar Michael Murtaugh


parent 489a1f71
This diff is collapsed.
This diff is collapsed.
# find all .md files in the directory
img=$(shell ls *.jpg)
derimg=$(shell ls *.small.jpg)
srcimg=$(filter-out $(derimg),$(img))
mdsrc=$(shell ls *.md)
# map *.mp => *.html for mdsrc
all: $(html_from_md) $(imgsmall)
%.small.jpg: %.jpg
convert -resize 240x $< $@
# Implicit rule to know how to make .html from .md
%.html: template.html
pandoc --from markdown \
--to html \
--standalone \
--template template.html \
--css styles.css \
$< -o $@
# special rule for debugging variables
@echo '$*=$($*)'
body {
margin: 20px;
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<meta name="author" content="$author-meta$" />
<meta name="date" content="$date-meta$" />
<title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
<style type="text/css">
<link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
<div class="page">
<div id="$idprefix$header">
<h1 class="title">$title$</h1>
<h1 class="subtitle">$subtitle$</h1>
<h2 class="author">$author$</h2>
<h3 class="date">$date$</h3>
<div id="$idprefix$TOC">
<div id="foot">
<a href="./" class="uplink">./</a>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment