Skip to content

Commit

Permalink
Add support for site.branch
Browse files Browse the repository at this point in the history
  • Loading branch information
remibetin committed May 30, 2024
1 parent fdbafce commit 7c2ef86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/github-file-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{%- endif -%}
{%- if include.p.github.branch -%}
{%- assign branch = include.p.github.branch -%}
{%- elsif site.branch -%}
{%- assign branch = site.branch -%}
{%- else -%}
{%- assign branch = "master" -%}
{%- endif -%}
Expand Down

0 comments on commit 7c2ef86

Please sign in to comment.