Skip to content

Commit 9a1f118

Browse files
committed
2023-09-03
1 parent c632213 commit 9a1f118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

til_2_11ty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse_article(content, category):
3838
post = {
3939
"date": datetime.strptime(content[pos1+9:pos2].strip(), "%Y-%m-%d"),
4040
"category": category,
41-
"tags": [t[1:] for t in content[pos2+9:pos3].strip().split(' ')],
41+
"tags": [t.strip('#') for t in content[pos2+9:pos3].strip().split(' ')],
4242
"content": content[pos5:].strip(),
4343
"title": content[pos4+3:pos5].strip(),
4444
}

0 commit comments

Comments
 (0)