Skip to content

Commit

Permalink
Fix script for generating medrXiv preprint files
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Nov 18, 2024
1 parent cecfe5c commit d4b6965
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ title: "Vigorous exercise associates with the abundance of gut bacterial species
nickname: 2024-11-05-morwani-vigorous-exercise-associates
authors: "Morwani J, Ducarmon Q, Zeller G, Deelen J, Beekman M, Slagboom PE"
year: "2024"
journal: "biorXiv"
journal: "medrxiv"
volume:
issue:
pages:
is_published: false
image: /assets/images/papers/biorxiv.png
image: /assets/images/papers/medrxiv.png
projects:
tags: ["preprint"]

Expand Down
4 changes: 2 additions & 2 deletions papers/_posts/preprint.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ title: "{title}"
nickname: {nickname}
authors: "{authors}"
year: "{year}"
journal: "biorXiv"
journal: "{journal}"
volume:
issue:
pages:
is_published: false
image: /assets/images/papers/biorxiv.png
image: /assets/images/papers/{journal}.png
projects:
tags: ["preprint"]

Expand Down
2 changes: 1 addition & 1 deletion scripts/grab_preprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
title = latest["title"]
image = f"/assets/images/papers/{args.provider}.png"
tags = ["preprint"]
journal = "{args.provider}"
journal = f"{args.provider}"
date = datetime.datetime.strptime(latest['date'], '%Y-%m-%d').date()
doi = f"https://doi.org/{latest['doi']}"

Expand Down

0 comments on commit d4b6965

Please sign in to comment.