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
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 Jun 21, 2017
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 Jun 30, 2017
@yihui yihui force-pushed the feature/github-edit branch 3 times, most recently from a624392 to 95b49ff Jul 9, 2017
@yihui yihui force-pushed the feature/github-edit branch from 95b49ff to b30d8b6 Aug 9, 2017
@yihui yihui force-pushed the feature/github-edit branch from b30d8b6 to eb862cb Aug 29, 2017
@yihui yihui force-pushed the feature/github-edit branch from eb862cb to 0b6a200 Oct 8, 2017
@yihui yihui force-pushed the feature/github-edit branch from 0b6a200 to 38b3f10 Oct 27, 2017
@yihui yihui force-pushed the feature/github-edit branch from 38b3f10 to d994ad5 Mar 21, 2018
@yihui yihui force-pushed the feature/github-edit branch from d994ad5 to b36f102 Aug 30, 2018
@yihui yihui force-pushed the feature/github-edit branch from b36f102 to f68a1f5 Oct 1, 2018
@yihui yihui force-pushed the feature/github-edit branch from f68a1f5 to dc31dda Mar 20, 2019
@yihui yihui force-pushed the feature/github-edit branch from dc31dda to 45fe8f9 Apr 18, 2019
@yihui yihui force-pushed the feature/github-edit branch from 45fe8f9 to 7f7badd Mar 17, 2020
@yihui yihui force-pushed the feature/github-edit branch from 7f7badd to c88040f Jul 24, 2020
@yihui yihui force-pushed the feature/github-edit branch from c88040f to 3901584 Oct 5, 2020
@yihui yihui force-pushed the feature/github-edit branch from 3901584 to 58e17cb Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant