diff options
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 |