Skip to content

Commit

Permalink
fix: link to "edit this page" (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio authored May 16, 2023
1 parent c3589f4 commit 5b69eb8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
GATSBY_BRANCH=next
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
GATSBY_BRANCH=next
2 changes: 1 addition & 1 deletion src/components/last-update/last-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LastUpdate = ({
lastModified,
noPadding
}) => {
let editGithubUrl = `https://github.com/italia/designers.italia.it/tree/${process.env.GATSBY_BRANCH}/src/data/content/` // < fallback if not trackable via pathname let's go to repo root...
let editGithubUrl = `https://github.com/italia/designers.italia.it/tree/main/src/data/content/` // < fallback if not trackable via pathname let's go to repo root...
if (pathname) {
const filePath = pathname === '/'
? "index"
Expand Down

0 comments on commit 5b69eb8

Please sign in to comment.