Home
/
xangelo.ca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f806d3c
)
fix: typo with extra `:`
author
Angelo Rodrigues
<git@xangelo.ca>
Thu, 14 Aug 2025 11:40:15 +0000
(07:40 -0400)
committer
GitHub
<noreply@github.com>
Thu, 14 Aug 2025 11:40:15 +0000
(07:40 -0400)
.github/scripts/medium_to_hugo.py
patch
|
blob
|
history
diff --git
a/.github/scripts/medium_to_hugo.py
b/.github/scripts/medium_to_hugo.py
index f8e5544357fb8278f2edf6ee3f04327a5c41b4c3..c35f00839e21ff379ee9a361baf7cefa1886d9ca 100644
(file)
--- a/
.github/scripts/medium_to_hugo.py
+++ b/
.github/scripts/medium_to_hugo.py
@@
-14,7
+14,7
@@
OUTPUT_DIR = "content/posts/medium"
EXISTING_SLUGS = {f[:-3] for f in os.listdir(OUTPUT_DIR) if f.endswith(".md")}
# default to false, but read from --force flag if it's set
-FORCE_REBUILD = len(sys.argv) > 1 and sys.argv[1] == "--force"
:
+FORCE_REBUILD = len(sys.argv) > 1 and sys.argv[1] == "--force"
def slugify(title):
return re.sub(r"[^\w-]", "", re.sub(r"\s+", "-", title.lower())).strip("-")