aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-04-05 20:56:22 +0100
committerLeah Rowe <info@minifree.org>2017-04-05 20:56:22 +0100
commit5ac16a8f09e3179fdd799bca56a13223c2b38214 (patch)
tree3d620769f6ad14281a87746010fd19bac38ec95b /www
parentf346fcfa1bb148ea259c465b2e407d65dca19a30 (diff)
downloadlibrebootfr-5ac16a8f09e3179fdd799bca56a13223c2b38214.tar.gz
librebootfr-5ac16a8f09e3179fdd799bca56a13223c2b38214.zip
Center only the homepage header. Align:left for everything else
Diffstat (limited to 'www')
-rw-r--r--www/headerleft.css3
-rwxr-xr-xwww/publish.sh13
2 files changed, 13 insertions, 3 deletions
diff --git a/www/headerleft.css b/www/headerleft.css
new file mode 100644
index 00000000..645ab4ea
--- /dev/null
+++ b/www/headerleft.css
@@ -0,0 +1,3 @@
+header {
+ text-align: left !important;
+}
diff --git a/www/publish.sh b/www/publish.sh
index 5e89dcb1..ab9147fc 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -47,6 +47,13 @@ TOC=$(grep -q "^x-toc-enable: true$" temp.md && echo "--toc --toc-depth=2") || T
# work around heterogenous pandoc versions
SMART=$(pandoc -v | grep -q '2\.0' || echo "--smart") || SMART=""
-# chuck through pandoc
-pandoc $TOC $SMART temp.md -s --css /global.css -T Libreboot \
- --template template.html --metadata return="$RETURN"> $FILE.html
+
+
+if [ "${FILE}" != "./index" ]; then
+ # chuck through pandoc
+ pandoc $TOC $SMART temp.md -s --css /global.css --css /headerleft.css -T Libreboot \
+ --template template.html --metadata return="$RETURN"> $FILE.html
+else
+ pandoc $TOC $SMART temp.md -s --css /global.css \
+ --template template.html --metadata return="$RETURN"> $FILE.html
+fi