From c818f2b61c75195cf7adb542dd443e37feea7b59 Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Fri, 17 Aug 2018 22:30:27 -0600 Subject: Convert to Org-mode and Pandoc Create some fairly straight-forward conversion scripts to generate a static site from Emacs Org-mode files using Pandoc to generate HTML files. --- scripts/generate_post_summary_xml.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/generate_post_summary_xml.sh (limited to 'scripts/generate_post_summary_xml.sh') diff --git a/scripts/generate_post_summary_xml.sh b/scripts/generate_post_summary_xml.sh new file mode 100755 index 0000000..b409209 --- /dev/null +++ b/scripts/generate_post_summary_xml.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# Generate HTML post summary tags + +ORGIN=${1} +GENERATED_PREVIEW_FILE=${2} +PROJ_ROOT=$(git rev-parse --show-toplevel) + +source ${PROJ_ROOT}/scripts/org-metadata.sh +DISPLAY_DATE=$(date -d ${DATE} +'%a %b %d, %Y') +SORT_DATE=$(date -d ${DATE} +'%Y %m %d ') +PREVIEW_CONTENT=$(cat ${GENERATED_PREVIEW_FILE} | pandoc -f org -t html) + +echo -n "${SORT_DATE}" +echo -n "" +echo -n "${TITLE}" +echo -n "https://kennyballou.com${SLUG}" +echo -n "${SLUG}" +echo -n "${DISPLAY_DATE}" +echo -n "${DESCRIPTION}" +echo -n "" +echo "" -- cgit v1.2.1