diff options
author | Leah Rowe <info@minifree.org> | 2017-05-28 01:17:43 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-05-28 01:17:43 +0100 |
commit | e1c6c734aa638b801afabd12c5d5b1401ce17609 (patch) | |
tree | 4b97da31eb4ab62c3979b422f584aaf567235af8 /www/publish.sh | |
parent | 0ea24df299cf4a4076a5f0b968c361efd46569ba (diff) | |
download | librebootfr-e1c6c734aa638b801afabd12c5d5b1401ce17609.tar.gz librebootfr-e1c6c734aa638b801afabd12c5d5b1401ce17609.zip |
further tidy suppliers.md: small headers, back to home link at bottom of page
Diffstat (limited to 'www/publish.sh')
-rwxr-xr-x | www/publish.sh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/www/publish.sh b/www/publish.sh index e75ec332..fb891458 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -24,22 +24,30 @@ FILE=${1%.md} cat $1 > temp.md -OPTS= +OPTS="-T Libreboot" if [ "${FILE}" != "./index" ]; then - if [[ $FILE == *index ]] + if [[ $FILE == *suppliers ]] then - DEST="../" + RETURN="" else - DEST="./" - fi + if [[ $FILE == *index ]] + then + DEST="../" + else + DEST="./" + fi - RETURN="<a href='$DEST'>Back to previous index</a>" - OPTS="-T Libreboot" + RETURN="<a href='$DEST'>Back to previous index</a>" + OPTS="-T Libreboot" + fi else OPTS="--css /headercenter.css" fi +if [[ $FILE = *suppliers ]]; then + printf "\n<a href=\"../\">Back to previous index</a>\n" >> temp.md +fi if [ "${FILE}" != "./docs/fdl-1.3" ] && [ "${FILE}" != "./conduct" ]; then cat footer.md >> temp.md |