🢀 stagit :: 6a0179e


commit 6a0179e8e95f1a47b2dae799924acfb85313f7d6
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Sun Jun 23 11:35:13 2019 -0400

    Fixed missing .html on file names, non-breaking space typo, and invalid placed semi-colon.

diff --git a/README.md b/README.md
index 030a63b..be35c5c 100644
--- a/README.md
+++ b/README.md
@@ -33,4 +33,5 @@ Lastly, the `CNAME` option is required if you are using a custom domain with Git
 * Create an index per-user to view specific users repos & key information.
 * Pagination support.
 * Option to minify HTML & CSS.
-* Create a local preview *(of both themes)* using the docs directory.
\ No newline at end of file
+* Create a local preview *(of both themes)* using the docs directory.
+* Add a footer to all pages with the last updated datetime and a link to this repository.
\ No newline at end of file
diff --git a/stagit b/stagit
index 3db23ed..abea858 100755
--- a/stagit
+++ b/stagit
@@ -77,7 +77,7 @@ generate_repository_index() {
 			"<h5>git clone <a href=\"$REPO_URL\">$REPO_URL</a></h5>\n"\
 			"<hr>\n"\
 			"<table id=\"main\" cellpadding=\"0\" cellspacing=\"0\">\n"\
-			"<tr id=\"navigation\"><td>&nbps; Hash</td><td>Commit message</td><td>Author</td><td>Date</td></tr>" >> $WWW_DIR/$REPO_NAME$EX
+			"<tr id=\"navigation\"><td>&nbsp; Hash</td><td>Commit message</td><td>Author</td><td>Date</td></tr>" >> $WWW_DIR/$REPO_NAME.html
 }
 
 mkdir -p $WWW_DIR && rm -rf $WWW_DIR/*
@@ -114,10 +114,10 @@ for d in $(find $REPO_DIR -name .git -type d -prune | sort); do
 		COMMIT_SIGNED=$(echo $line | cut -d'|' -f1)
 		COMMIT_KEY=$(echo $line | cut -d'|' -f2)
 		COMMIT_KEYID=$(echo $line | cut -d'|' -f3)
-		if [ $COMMIT_SIGNED = 'G' ] then;
+		if [ $COMMIT_SIGNED = 'G' ]; then
 			COMMIT_SIGNED="<span style=\"color:green\" title=\"$COMMIT_KEY&#13;$COMMIT_KEYID\">&#128274;</span>"
 		elif [ $COMMIT_SIGNED = 'B' ] || [ $COMMIT_SIGNED = 'U' ]  || [ $COMMIT_SIGNED = 'X' ] || [ $COMMIT_SIGNED = 'Y' ] || [ $COMMIT_SIGNED = 'R' ]; then
-			COMMIT_SIGNED="<span style=\"color:red\" title=\"$COMMIT_KEY&#13;$COMMIT_KEYID\">&#128274;</span>"
+			COMMIT_SIGNED="<span style=\"color:red\" title=\"$COMMIT_KEY&#13;$COMMIT_KEYID&#13;key is bad, invalid, expired, or revoked\">&#128274;</span>"
 		else
 			COMMIT_SIGNED="&nbsp;"
 		fi
@@ -128,6 +128,6 @@ for d in $(find $REPO_DIR -name .git -type d -prune | sort); do
 		fi
 		COMMIT_AUTHOR=$(echo $line | cut -d'|' -f6)
 		COMMIT_DATE=$(echo $line | cut -d'|' -f7)
-		echo "<tr class=\"item\"><td>$COMMIT_SIGNED $COMMIT_HASH</td><td>$COMMIT_MESSAGE</td><td>$COMMIT_AUTHOR</td><td>$COMMIT_DATE</td></tr>" >> $WWW_DIR/$REPO_NAME$EX
+		echo "<tr class=\"item\"><td>$COMMIT_SIGNED $COMMIT_HASH</td><td>$COMMIT_MESSAGE</td><td>$COMMIT_AUTHOR</td><td>$COMMIT_DATE</td></tr>" >> $WWW_DIR/$REPO_NAME.html
 	done
 done
\ No newline at end of file