X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F40_revision.sh;h=e06a95b16843b256a3610a21aa41a03d0373d2a6;hb=3e0db89f8d84e84fbc7b8cd5593899fbc3cfa3b9;hp=af39df36adc8ea66a047b78e42e9d3d406030820;hpb=f8bec3740e1d99684a5c33680e48d1f523c09983;p=shellwiki diff --git a/handlers/40_revision.sh b/handlers/40_revision.sh index af39df3..e06a95b 100755 --- a/handlers/40_revision.sh +++ b/handlers/40_revision.sh @@ -1,6 +1,6 @@ #!/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 @@ -24,7 +24,7 @@ case "${PATH_INFO}" in theme_error 403 else "$_EXEC/macros/revisions" --list --diff "${page}" \ - | theme_revisions - + | theme_revisions - "$(_ Revisions): ${PAGE_TITLE:-"${page##*/}"}" fi return 0 ;; @@ -41,7 +41,7 @@ case "${PATH_INFO}" in cd "${_DATA}/pages${page}" || cd "${_DATA}/pages/" git -C "${_DATA}" show "${rev}:pages${PATH_INFO}#page.md" \ | { printf '
'; md; printf '
'; } \ - | theme_page - "${page##*/}" + | theme_page - "${PAGE_TITLE:-"${page##*/}"} (${rev})" ) fi return 0