From c749fd1b0bd401dfc9213d6c216255fac93aacc2 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 11 Apr 2022 15:30:35 +0200 Subject: [PATCH] fix internal links --- _includes/fnc/link.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_includes/fnc/link.html b/_includes/fnc/link.html index 919b6a54..7be7b8be 100644 --- a/_includes/fnc/link.html +++ b/_includes/fnc/link.html @@ -1,11 +1,15 @@ +{% capture link %} {% if include.item.site %} {{ site[include.item.site] }} {% elsif include.item.internal %} {{ include.item.internal | relativurl }} {% elsif include.item.link %} - {{ include.item.link }} + {{ include.item.link | include fnc/link.html }} {% elsif include.item.home %} - {{ '/' | relative_url }} + {{ '/' | relative_url }} {% else %} {{ include.item }} -{% endif %} \ No newline at end of file +{% endif %} +{% endcapture %} + +{{ link | strip }} \ No newline at end of file