image/svg+xml Openclipart 2007-11-20T10:29:44 Some shapes from photos. http://openclipart.org/detail/8766/tree-silhouettes-by-chrisdesign-8766 Chrisdesign clip art clipart image media nature png public domain shape silhouette svg tree

zzolo

Edit link to Prose.io from Jekyll site

11 Jul 2013

Prose.io is an excellent Markdown (or any text file) editor aimed at creating a web based interface to maintain content on Github which is more than likely running through Jekyll.

I wanted a quick way to link to Prose.io to edit page on the site, specifically from my phone and did not want to spend time navigating through the file structure to do it. I also wanted a way to quickly add posts. So, here are some example snippets of code to do that in your Jekyll site (update the repo and user name as appropriate to your site).

  <!-- Edit current page -->
  <a href="{% if page.path %}//prose.io/#zzolo/zzolo.github.com/edit/master/{{ page.path }}{% else %}//prose.io/#zzolo/zzolo.github.com{% endif %}" target="_blank">Edit this page in Prose.io</a>
  
  <!-- Add post -->
  <a href="//prose.io/#zzolo/zzolo.github.com/new/master/_posts" target="_blank">Add a post with Prose.io</a>