libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5ac16a8f09e3179fdd799bca56a13223c2b38214
parent f346fcfa1bb148ea259c465b2e407d65dca19a30
Author: Leah Rowe <info@minifree.org>
Date:   Wed,  5 Apr 2017 20:56:22 +0100

Center only the homepage header. Align:left for everything else

Diffstat:
docs/index.md | 2+-
www/headerleft.css | 3+++
www/publish.sh | 13++++++++++---
3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/docs/index.md b/docs/index.md @@ -1,5 +1,5 @@ --- -title: Libreboot documentation +title: Documentation ... Information about this release can be found at [release.html](release.html). diff --git a/www/headerleft.css b/www/headerleft.css @@ -0,0 +1,3 @@ +header { + text-align: left !important; +} diff --git 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