From 7c2ef86a661a4ab0456fdb48ab90f3570cdcca7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Thu, 30 May 2024 15:23:56 +0200 Subject: [PATCH] Add support for site.branch --- _includes/github-file-path.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_includes/github-file-path.html b/_includes/github-file-path.html index 926ab15..79f19d4 100644 --- a/_includes/github-file-path.html +++ b/_includes/github-file-path.html @@ -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 -%}