Skip to content

Commit

Permalink
Minor comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Feb 19, 2024
1 parent b8ed7a6 commit b8048e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/new_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
if type(data[key]) not in [int, str, float, bool]:
data[key] = str(data[key])

## Add URL info:
# we have to deal with both possibilities of new article:
# - an article as a .md file which URL is the name
# - a leaf bundle article (https://gohugo.io/content-management/page-bundles/#leaf-bundles):
Expand All @@ -30,6 +29,7 @@
# direct article file: name is file name
file_name = basename[:-3] # get rid of the `.md`

## Add URL info:
data["url"] = f"https://iscsc.fr/posts/{file_name}"

## Finally send Data
Expand Down

0 comments on commit b8048e4

Please sign in to comment.