From b6d068b0481cb1006ba6599bce764549843284ba Mon Sep 17 00:00:00 2001 From: Ken Barbour Date: Sat, 23 Jul 2022 11:17:38 -0400 Subject: [PATCH] should use utility for determining the template path --- generate_website.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_website.sh b/generate_website.sh index 77d9343..21ed7fc 100755 --- a/generate_website.sh +++ b/generate_website.sh @@ -214,7 +214,7 @@ function render_index() { } -# Renders the markup for an item to include in the site inded +# Renders the markup for an item to include in the site index # @param url path to item (usually html page) # @param string Title # @param string thumbnail image @@ -223,7 +223,7 @@ function render_index_item() { url=${1} title=${2} thumbnail=${3} - cat ${WXRX_WEB_TEMPLATES}/item.template | + cat $( template_path "item") | template_subst URL "${url}" | template_subst HEADING "${title}" | template_subst THUMBNAIL "${thumbnail}"