From 1fdbc7e8ef4025e50678261ca670daca85ac298c Mon Sep 17 00:00:00 2001 From: Oscar Benedito Date: Fri, 31 Jul 2020 16:56:52 +0200 Subject: Add about page for repos with REAMDE This commits adds a new dependency: md4c (https://github.com/mity/md4c). Now stagit will generate an about page for each repo with a README, converting it to HTML if it is a Markdown file. --- example_post-receive.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example_post-receive.sh') diff --git a/example_post-receive.sh b/example_post-receive.sh index 46eb898..d0373ef 100755 --- a/example_post-receive.sh +++ b/example_post-receive.sh @@ -57,7 +57,9 @@ cd "${destdir}/${d}" || exit 1 # make pages stagit -c "${cachefile}" "${reposdir}/${r}" -ln -sf log.html index.html +[ -f "about.html" ] \ + && ln -sf about.html index.html \ + || ln -sf log.html index.html ln -sf "${dir}" .git # make index -- cgit v1.2.3