Capitalise descriptions and add trailing period
Normalise all post descriptions at import time: first character uppercased, period appended if missing. Regenerated all 101 page bundles. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,12 @@ for idx, row in enumerate(matched, start=1):
|
||||
gen_img = row["generated_image"].strip()
|
||||
slug = gen_img.replace(".png", "")
|
||||
title = row["title"].strip()
|
||||
desc = row["description"].strip().replace('"', '\\"')
|
||||
desc = row["description"].strip()
|
||||
if desc:
|
||||
desc = desc[0].upper() + desc[1:]
|
||||
if not desc.endswith('.'):
|
||||
desc += '.'
|
||||
desc = desc.replace('"', '\\"')
|
||||
raw_cat = row.get("category", "").strip()
|
||||
raw_tags = row.get("tags", "").strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user