{% if post.url %}
{% assign path = post.path %}
{% else %}
{% assign path = page.path %}
{% endif %} {% assign git_owner = site.git.owner | default: 'github' %} {% assign git_host = site.git.host | default: 'github.com/' %} {% assign git_repository = site.git.repository | default: site.github.repository_url | default: 'jekyll' %} {% assign git_branch = site.git.branch | default: site.github.source.branch | default: 'gh-pages' %}
<a href=“{{ git_host }}{{ git_owner }}//{{ git_repository }}/edit/{{ git_branch }}/{{ path }}” target=“_blank” title=“Suggest an edit” aria-label=“Suggest an edit” rel=“noopener”>suggest edit</a>