_layouts/post.html in jekyll-theme-mehdix-rtl-2.0.0 vs _layouts/post.html in jekyll-theme-mehdix-rtl-2.0.1

- old
+ new

@@ -35,10 +35,15 @@ <i class="fas fa-tag"></i> <a rel="tag" href="{{ tag | tag_url }}">{{tag}}</a> {% endfor %} <i class="fas fa-code"></i> - <a href="https://raw.githubusercontent.com/{{site.github.username}}/{{site.github.repository}}/master/{{page.path}}">سورس</a> + {% assign slash = site.source | slice: 0 %} + {% if slash == '/' %} + <a href="https://raw.githubusercontent.com/{{site.github.username}}/{{site.github.repository}}/master/{{ page.path }}">سورس</a> + {% else %} + <a href="https://raw.githubusercontent.com/{{site.github.username}}/{{site.github.repository}}/master/{{site.source}}/{{page.path}}">سورس</a> + {% endif %} </small> <nav class="pagination"> {% if page.next %} <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">قبلی</a>