Skip to content

Commit

Permalink
Fix edit link for index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchangwu committed Dec 14, 2016
1 parent 4c6b3e3 commit e4ed2d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ site_title: Jekyll theme for documentation
company_name: Your company
# 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.

disqus_shortname: idrbwjekyll
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1 class="post-title-main">{{ page.title }}</h1>

{% 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 %}

Expand Down

0 comments on commit e4ed2d8

Please sign in to comment.