diff --git a/_includes/github-file-path.html b/_includes/github-file-path.html index a03b7b4..926ab15 100644 --- a/_includes/github-file-path.html +++ b/_includes/github-file-path.html @@ -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}} \ No newline at end of file +https://github.com/{{repo}}/edit/{{branch}}/{{path}}