Skip to content

Commit 633f0dc

Browse files
committed
Fix: Page GitHub links with '. /'
1 parent 185e416 commit 633f0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_includes/page-github-links.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% endcomment -%}
55

66
{% assign repo = repo | default: site.repo.this -%}
7-
{% capture path -%} {{repo}}/tree/{{site.branch}}/{{page.inputPath}} {%- endcapture -%}
7+
{% capture path -%} {{repo}}/tree/{{site.branch}}/{{page.inputPath | regex_replace: '^./'}} {%- endcapture -%}
88
{% assign siteTitle = title | default: page.url -%}
99
{% assign url = site.url | append: page.url -%}
1010

0 commit comments

Comments
 (0)