aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJefferson Julio <[email protected]>2021-05-31 19:16:12 -0300
committerJefferson Julio <[email protected]>2021-05-31 19:16:12 -0300
commit9f5162371323562623bae42b0476bd8b9a4a5e92 (patch)
tree9375011fbff065938b1878cbf5198247a8a0dbbf /utils
parent381bff129b70471e86e99a2d6b6a7e090f13287e (diff)
downloadblog.sh-9f5162371323562623bae42b0476bd8b9a4a5e92.tar.bz2
blog.sh-9f5162371323562623bae42b0476bd8b9a4a5e92.zip
Add more HTML metadata, re-format some text
Diffstat (limited to 'utils')
-rwxr-xr-xutils/parse-article.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/parse-article.sh b/utils/parse-article.sh
index b64c0ff..836fd49 100755
--- a/utils/parse-article.sh
+++ b/utils/parse-article.sh
@@ -9,6 +9,9 @@ ARTICLE_FILE_CONTENT=$(cat "$ARTICLE_FILE")
# The first 3 lines of the file are metadata information
ARTICLE_METADATA=$(echo "$ARTICLE_FILE_CONTENT" | head -n 3)
+# URL path to article
+ARTICLE_URL="/$ARTICLE_FILE"
+
source $SCRIPT_DIR/utils/parse-article-content.sh
# Tags are placed on the first line of the file, delimited by commas