Edit On Github

To create a link to edit pages using Github first define the repository url and edit-path in your site settings:

[repository]
url = "https://github.com/uwe-app/website/"
edit-path = "edit/<branch-name>/"
info

Replace <branch-name> with your preferred branch name, eg: main.

Then add a dependency on the std::link plugin and enable the github feature:

[dependencies]
"std::link" = { version = "~1", features = ["github"] }

Afterwards you can use the github-edit partial wherever you want to show the Edit on Github link:

{{> github-edit label="Edit on Github" title="Edit on Github"}}