#!/bin/sh
-# Copyright 2022 - 2023 Paul Hänsch
+# Copyright 2022 - 2024 Paul Hänsch
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
theme_error 403
else
"$_EXEC/macros/revisions" --list --diff "${page}" \
- | theme_revisions -
+ | theme_revisions - "$(_ Revisions): ${PAGE_TITLE:-"${page##*/}"}"
fi
return 0
;;
cd "${_DATA}/pages${page}" || cd "${_DATA}/pages/"
git -C "${_DATA}" show "${rev}:pages${PATH_INFO}#page.md" \
| { printf '<article class="revision">'; md; printf '</article>'; } \
- | theme_page - "${page##*/}"
+ | theme_page - "${PAGE_TITLE:-"${page##*/}"} (${rev})"
)
fi
return 0