{% if site.data.settings.edit-on-github.enabled and site.data.settings.edit-on-github.repo %} {% assign page_base = page.permalink | split:"/" %} {% if page_base[1] == "blog" %} {% elsif page_base[1] == "documentation" and site.data.settings.edit-on-github.docs %} {% capture github-home %}{{site.data.settings.edit-on-github.docs}}{% endcapture %} {% capture github-docs %}{{site.data.settings.edit-on-github.docs}}/tree/master/{% endcapture %} {% capture report-issue-link %} {{github-home}}/issues/new?title=Problem+with+{{page-path}}&body=Please+enter+some+details+about+the+bug/issue+so+we+can+promptly+resolve+it.+%0D%0AURL%3A++{{site.url}}{{page.url}} {% endcapture %} {% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
{% else %} {% assign page-path = page.path | replace: " ", "" %} {% capture github-home %}{{site.data.settings.edit-on-github.repo}}{% endcapture %} {% capture github-docs %}{{site.data.settings.edit-on-github.repo}}/tree/master/{% endcapture %} {% capture report-issue-link %} {{site.data.settings.edit-on-github.repo}}/issues/new?title=Problem+with+{{page-path}}&body=Please+enter+some+details+about+the+bug/issue+so+we+can+promptly+resolve+it.+%0D%0AURL%3A++{{site.url}}{{page.url}} {% endcapture %} {% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
{% endif %} {% endif %}