Skip to content
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
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yihui
Copy link
Owner

@yihui yihui commented Jun 21, 2017

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 be master, and the path is likely to be content/. Please do not blindly follow my GithubEdit 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).

@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 2d53f6b to 11162dc Compare June 21, 2017 19:30
yihui referenced this pull request in rbind/njtierney.com Jun 22, 2017
@yihui yihui added the feature label Jun 22, 2017
@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 80a8a25 to 55cb8a6 Compare July 3, 2017 18:18
@yihui yihui force-pushed the feature/github-edit branch 3 times, most recently from a624392 to 95b49ff Compare July 13, 2017 07:08
@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 3901584 to 58e17cb Compare October 11, 2020 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant