Skip to content

Commit

Permalink
Afficher le chemin correcte vers le fichier
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
mart-e committed Aug 27, 2021
1 parent dc33df0 commit aefc113
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/Article.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const repo = 'laem/velolibre'

const getLastEdit = (name, action) =>
fetch(
`https://api.github.com/repos/${repo}/commits?path=src%2Farticles%2F${name}.md&page=1&per_page=1`
`https://api.github.com/repos/${repo}/commits?path=source%2Farticles%2F${name}.md&page=1&per_page=1`
)
.then((res) => res.json())
.then((json) => {
Expand Down Expand Up @@ -77,7 +77,7 @@ export default ({}) => {
<span>
Mis à jour le{' '}
<a
href={`https://github.com/${repo}/blob/master/src/articles/${id}.md`}
href={`https://github.com/${repo}/blob/master/source/articles/${id}.md`}
>
{lastEditDate}
</a>
Expand Down
2 changes: 1 addition & 1 deletion source/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const repo = 'laem/velolibre'

export const getLastEdit = (name, action) =>
fetch(
`https://api.github.com/repos/${repo}/commits?path=src%2Farticles%2F${name}.md&page=1&per_page=1`
`https://api.github.com/repos/${repo}/commits?path=source%2Farticles%2F${name}.md&page=1&per_page=1`
)
.then((res) => res.json())
.then((json) => {
Expand Down
2 changes: 1 addition & 1 deletion source/Étape.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default ({}) => {
<span>
Mis à jour le{' '}
<a
href={`https://github.com/${repo}/blob/master/src/articles/${id}.md`}
href={`https://github.com/${repo}/blob/master/source/articles/${id}.md`}
>
{lastEditDate}
</a>
Expand Down

0 comments on commit aefc113

Please sign in to comment.