Fix edit link for index.html
This commit is contained in:
@ -11,7 +11,7 @@ site_title: Jekyll theme for documentation
|
|||||||
company_name: Your company
|
company_name: Your company
|
||||||
# this appears in the footer
|
# this appears in the footer
|
||||||
|
|
||||||
github_editme_path: tomjohnson1492/documentation-theme-jekyll/blob/gh-pages/pages/
|
github_editme_path: tomjohnson1492/documentation-theme-jekyll/blob/gh-pages/
|
||||||
# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
|
# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
|
||||||
|
|
||||||
disqus_shortname: idrbwjekyll
|
disqus_shortname: idrbwjekyll
|
||||||
|
@ -41,7 +41,7 @@ layout: default
|
|||||||
|
|
||||||
{% if site.github_editme_path %}
|
{% if site.github_editme_path %}
|
||||||
|
|
||||||
<a target="_blank" href="https://github.com/{{site.github_editme_path}}{{page.folder}}{{page.url | remove: ".html" | append: ".md"}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
|
<a target="_blank" href="https://github.com/{{site.github_editme_path}}{% unless page.url contains "index.html" %}pages/{% endunless %}{{page.folder}}{{page.url | remove: ".html" | append: ".md"}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user