From 236154100f9741cfd1efa3a3905525bbc49fb5c5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 28 Jul 2017 11:33:36 +0200 Subject: [PATCH] [doc] Add possibility to override editme link location If the page contains the variable "editmepath" in the yaml frontmatter, this will be used instead of "page.path" (the actual markdown file). This is useful, if the page is generated from another source. --- docs/_layouts/page.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index 78a082ab1e..8e65184b0e 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -41,7 +41,12 @@ layout: default {% if site.github_editme_path %} - Edit me + {% assign editmepath = page.path %} + {% if page.editmepath %} + {% assign editmepath = page.editmepath %} + {% endif %} + + Edit me {% endif %}