Skip to content

Commit

Permalink
Merge pull request #91 from w3c/github-file-path
Browse files Browse the repository at this point in the history
Adapt GitHub file path
  • Loading branch information
remibetin authored May 30, 2024
2 parents bb916ca + d87a12a commit fdbafce
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions _includes/github-file-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
{%- else -%}
{%- assign branch = "master" -%}
{%- endif -%}
{%- if include.p.github.path -%}
{%- assign path = include.p.path -%}
{%- if include.p.collection and repo == "w3c/wai-website" -%}
{%- assign path = include.p.path | prepend: "collections/" -%}
{%- elsif include.p.github.path -%}
{%- assign path = include.p.github.path -%}
{%- elsif include.p.collection -%}
{%- assign path = include.p.path -%}
{%- else -%}
{%- assign path = "index.md" -%}
{%- endif- %}
https://github.com/{{repo}}/edit/{{branch}}/{{path}}
https://github.com/{{repo}}/edit/{{branch}}/{{path}}

0 comments on commit fdbafce

Please sign in to comment.