Skip to content

Commit

Permalink
fix <s> in names
Browse files Browse the repository at this point in the history
see #104
  • Loading branch information
yelizariev committed Mar 20, 2021
1 parent e6cd7c8 commit 864ce5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions data2hugo/persons_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def main():
pass
name = data["name"]["nameshow"]
name = name.replace("<br />", " ").replace("<br/>", " ")
# e.g. https://stalin.memo.ru/persons/p23850/
name = name.replace("<s>", "(").replace("</s>", ")")
meta = {
"title": name
}
Expand Down
2 changes: 1 addition & 1 deletion hugo/content/persons/p13138.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: ЛЕВЧУК Владимир <s>Исаакович</s> Михайлович
title: ЛЕВЧУК Владимир (Исаакович) Михайлович
---
2 changes: 1 addition & 1 deletion hugo/content/persons/p23850.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: ВИКСНЕ <s>Наум Абрамович</s> Павел Иванович
title: ВИКСНЕ (Наум Абрамович) Павел Иванович
---

0 comments on commit 864ce5f

Please sign in to comment.