There was an error while loading. Please reload this page.
1 parent fc4f814 commit fa7ae94Copy full SHA for fa7ae94
1 file changed
_includes/edit_link.html
@@ -0,0 +1,12 @@
1
+{% comment %}
2
+---------------------------------------------------------------------------
3
+
4
+Provide a generalized link for using prose.io to edit Jekyll content.
5
+This grabs the page path from Jekyll and other variables from _config.yml
6
+to build the edit URL.
7
8
+Note that this is all on one line so to avoid extra <br /> in rendering.
9
+There's probably an elegant way to do this, but it's late and I'm lazy.
10
11
+--------------------------------------------------------------------------
12
+{% endcomment %}{% capture edit_url %}{{ site.prose_url }}{{ site.gh_org }}/{{ site.repo_name }}/edit/{{ site.branch }}/{{ page.path }}{% endcapture %}<a href="{{ edit_url }}" target="_blank">Edit this page</a>
0 commit comments