pdssg

Pandoc static site generator
Log | Files | Refs | README | LICENSE

commit cbd44dcf8a3bb4bc40abcef21a180bed5bf6599f
parent 1c0592ee996433d0ed5942d1f6a4f653d00d3ea5
Author: Byron Torres <torresjrjr@pm.me>
Date:   Fri,  3 Jul 2020 23:12:19 +0100

Add feedback on caching, Rename 'posts:' to 'log:'

Diffstat:
Mpdssg | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pdssg b/pdssg @@ -105,10 +105,12 @@ cache_posts_metadata() { echo -e "Preparing cache file:\t$cache_file" mkdir -p $(dirname $cache_file) - echo "posts:" > $cache_file + echo "log:" > $cache_file for post in $posts_dir/* do + echo -e "Caching:\t$post" + post_yaml="$(_get_yaml_block $post)" filename=$(basename $post) slug_attr="slug: ${filename%.md}"