X-Git-Url: https://git.ladys.computer/x_status_git/blobdiff_plain/865f81d1ae196d78a82b375960df56f4d4c5b11a..3394dfeb4194ca630becdb4d34538a3370d47ca8:/post-receive?ds=sidebyside diff --git a/post-receive b/post-receive index bc16a55..e1da847 100755 --- a/post-receive +++ b/post-receive @@ -70,6 +70,11 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}": status["author"] = { "name": author_path.name[2:] } with author_path.open("r", encoding="utf-8") as text: status["author"]["@id"] = text.read().strip() + title_path = next(path.parent.glob("2=*")) + if title_path: + with title_path.open("r", encoding="utf-8") as text: + title = text.read().strip() + status["title"] = title date_path = next(path.parent.glob("3=*")) datetime = "" if date_path: