summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-27 08:57:32 +0100
committerMartin Fischer <martin@push-f.com>2021-11-27 12:39:47 +0100
commit3268c0c89847cc9fa1eccdcd7eeef1731f3d9a23 (patch)
tree5cc54443712bce7ffd6c6c364118324ed3eacba5
parent0da26e8bcd12592ffa61136fd922464fe34ba2e6 (diff)
html: strip "the " from titles
-rwxr-xr-xbuild.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.py b/build.py
index 8072194..951f55d 100755
--- a/build.py
+++ b/build.py
@@ -65,6 +65,9 @@ def write_features(f, feature_data):
data['url'] = url
data['filename'] = feat
+ if data['title'].startswith('the '):
+ data['title'] = data['title'][len('the '):]
+
if key in features:
data['title'] = data['flag'].replace('_', ' ')