aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2017-04-03 22:59:57 -0700
committerLeah Rowe <info@minifree.org>2017-04-04 23:46:06 +0100
commitd628a77df6f5124627404ed9d79aa164f33fbcb8 (patch)
treed38a29188ed2ce8bde37526ed55bed8534bd7926 /www
parent337575b0dd7e03166779dc23c426758511fc069d (diff)
downloadlibrebootfr-d628a77df6f5124627404ed9d79aa164f33fbcb8.tar.gz
librebootfr-d628a77df6f5124627404ed9d79aa164f33fbcb8.zip
Misc www cleanup
Diffstat (limited to 'www')
-rw-r--r--www/index.md2
-rwxr-xr-xwww/publish.sh13
-rw-r--r--www/template.html67
3 files changed, 9 insertions, 73 deletions
diff --git a/www/index.md b/www/index.md
index da98cfd0..5ff3acbe 100644
--- a/www/index.md
+++ b/www/index.md
@@ -80,7 +80,7 @@ Transparency and collaboration are the way forward.
~Alyssa Rosenzweig
-A message from Leah, to further compliment Alyssa's submission:
+### A message from Leah, to further compliment Alyssa's submission:
I acknowledge that what I did was wrong. Although I felt justified at the time,
I ended up hurting a lot of people, most of whom were uninvolved with any of
diff --git a/www/publish.sh b/www/publish.sh
index 6de15662..671163f6 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -3,12 +3,16 @@
echo $1
FILE=${1%.md}
-# if not homepage, add a link back to the homepage
+cat $1 > temp.md
+
+# add footer
+
+echo '' >> temp.md
+
if [ "${FILE}" != "./index" ]; then
- RETURN="<p><a href='/index.html'>Go back to homepage</a></p>"
+ echo -ne '[Back to home](/index.html) -- ' >> temp.md
fi
-cat $1 > temp.md
echo "[License](license.md)" >> temp.md
# change out .md -> .html
@@ -21,5 +25,4 @@ TOC=$(grep -q "^x-toc-enable: true$" temp.md && echo "--toc")
SMART=$(pandoc -v | grep -q '2\.0' || echo "--smart")
# chuck through pandoc
-pandoc $SMART temp.md -s --css /global.css --section-divs -T Libreboot $TOC \
- --template=template.html --metadata "return=$RETURN" > $FILE.html
+pandoc $TOC $SMART temp.md -s --css /global.css -T Libreboot > $FILE.html
diff --git a/www/template.html b/www/template.html
deleted file mode 100644
index 2fc9b28d..00000000
--- a/www/template.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
-<head>
- <meta charset="utf-8">
- <meta name="generator" content="pandoc">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
-$for(author-meta)$
- <meta name="author" content="$author-meta$">
-$endfor$
-$if(date-meta)$
- <meta name="dcterms.date" content="$date-meta$">
-$endif$
-$if(keywords)$
- <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
-$endif$
- <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
- <style type="text/css">code{white-space: pre;}</style>
-$if(quotes)$
- <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
-$endif$
-$if(highlighting-css)$
- <style type="text/css">
-$highlighting-css$
- </style>
-$endif$
-$for(css)$
- <link rel="stylesheet" href="$css$">
-$endfor$
-$if(math)$
- $math$
-$endif$
-$for(header-includes)$
- $header-includes$
-$endfor$
-</head>
-<body>
-$for(include-before)$
-$include-before$
-$endfor$
-$if(title)$
-<header>
-<h1 class="title">$title$</h1>
-$if(subtitle)$
-<p class="subtitle">$subtitle$</p>
-$endif$
-$for(author)$
-<p class="author">$author$</p>
-$endfor$
-$if(date)$
-<p class="date">$date$</p>
-$endif$
-</header>
-$endif$
-$if(return)$
-$return$
-$endif$
-$if(toc)$
-<nav id="$idprefix$TOC">
-$toc$
-</nav>
-$endif$
-$body$
-$for(include-after)$
-$include-after$
-$endfor$
-</body>
-</html>