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

1 participant
@yihui
Owner

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 referenced this pull request in rbind/njtierney.com Jun 22, 2017

@yihui yihui added the feature label Jun 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment