New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a Github edit link automatically to a page #6
Open
yihui
wants to merge
3
commits into
master
Choose a base branch
from
feature/github-edit
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
2d53f6b
to
11162dc
Compare
yihui
referenced
this pull request
in rbind/njtierney.com
Jun 22, 2017
80a8a25
to
55cb8a6
Compare
a624392
to
95b49ff
Compare
95b49ff
to
b30d8b6
Compare
b30d8b6
to
eb862cb
Compare
eb862cb
to
0b6a200
Compare
0b6a200
to
38b3f10
Compare
38b3f10
to
d994ad5
Compare
d994ad5
to
b36f102
Compare
b36f102
to
f68a1f5
Compare
f68a1f5
to
dc31dda
Compare
dc31dda
to
45fe8f9
Compare
45fe8f9
to
7f7badd
Compare
7f7badd
to
c88040f
Compare
3901584
to
58e17cb
Compare
98f1dab
to
0bf14ae
Compare
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,BRANCH
is most likely to bemaster
, and the path is likely to becontent/
. Please do not blindly follow myGithubEdit
link 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).