How to add a Github edit link automatically to a page - #6
Open
yihui wants to merge 4 commits into
Open
Conversation
yihui
force-pushed
the
feature/github-edit
branch
2 times, most recently
from
June 21, 2017 19:30
2d53f6b to
11162dc
Compare
yihui
referenced
this pull request
in njtierney/njtierney.com
Jun 22, 2017
yihui
force-pushed
the
feature/github-edit
branch
2 times, most recently
from
July 3, 2017 18:18
80a8a25 to
55cb8a6
Compare
yihui
force-pushed
the
feature/github-edit
branch
3 times, most recently
from
July 13, 2017 07:08
a624392 to
95b49ff
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
August 9, 2017 16:48
95b49ff to
b30d8b6
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
August 29, 2017 03:02
b30d8b6 to
eb862cb
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
October 8, 2017 14:24
eb862cb to
0b6a200
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
October 27, 2017 03:17
0b6a200 to
38b3f10
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
March 21, 2018 15:38
38b3f10 to
d994ad5
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
August 30, 2018 15:02
d994ad5 to
b36f102
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
October 1, 2018 14:33
b36f102 to
f68a1f5
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
March 20, 2019 02:59
f68a1f5 to
dc31dda
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
April 18, 2019 19:01
dc31dda to
45fe8f9
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
March 17, 2020 03:07
45fe8f9 to
7f7badd
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
July 24, 2020 19:48
7f7badd to
c88040f
Compare
yihui
force-pushed
the
feature/github-edit
branch
2 times, most recently
from
October 11, 2020 20:54
3901584 to
58e17cb
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
June 15, 2022 03:49
98f1dab to
0bf14ae
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
February 5, 2024 14:56
0bf14ae to
57bf870
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
March 4, 2024 02:23
57bf870 to
ecd6b76
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
December 15, 2025 14:22
ecd6b76 to
1cafaca
Compare
yihui
force-pushed
the
feature/github-edit
branch
from
December 15, 2025 14:37
0b40579 to
e1e921e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains two commits. The first commit is the implementation, and the second commit only contains two examples.
You should read https://bookdown.org/yihui/blogdown/templates.html and replace the edit link (
GithubEdit)https://github.com/yihui/hugo-xmin/edit/feature/github-edit/exampleSite/content/with your own link. You must replace the USER (yihui), REPO (hugo-xmin), BRANCH (feature/github-edit), and the path after BRANCH (exampleSite/content/) depending on your repo settings. In most cases,BRANCHis most likely to bemaster, and the path is likely to becontent/. Please do not blindly follow myGithubEditlink here. You should understand what each part means exactly.Preview at https://deploy-preview-6--hugo-xmin.netlify.com/ (see the link "Edit this page" in the footer of every page).