From a0142837756f9c8adc2f32fa39ff77be1a38dc9c Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 25 May 2024 15:42:40 +0200 Subject: [PATCH] feat: humanize project titles in listing Convert slugged project head titles to readable format in the projects listing page by applying `unslugify` to the title before rendering. This enhances UI readability, making project titles more accessible and understandable to users. The change only affects how titles are displayed, with no impact on underlying data structures or URL schemes. --- src/structables/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structables/main.py b/src/structables/main.py index 5262487..cdf1c1a 100644 --- a/src/structables/main.py +++ b/src/structables/main.py @@ -483,7 +483,7 @@ def project_list(head, sort="", per_page=20): return render_template( "projects.html", - title=head, + title=unslugify(head)[0], ibles=ibles, path=path, pagination=get_pagination(request, total, per_page),