Archived
4
2

Refactor media_baseurl MACRO to media_basepath MACRO

Prevent name collision with media_basepath root_template/page property
of same name. Also fix application of trailing forward slash to path
based on existence of baseurl property.
This commit is contained in:
Roan Horning 2022-10-01 13:18:35 -04:00
parent b0d31ee507
commit 64ae9c4f86
Signed by: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -44,10 +44,10 @@
<!--% IF baseurl %-->./<!--% ELSE %-->/<!--% END %--> <!--% IF baseurl %-->./<!--% ELSE %-->/<!--% END %-->
<!--% END %--> <!--% END %-->
<!--% MACRO media_baseurl(baseurl, media_hostname) BLOCK %--> <!--% MACRO media_basepath(baseurl, media_baseurl) BLOCK %-->
<!--% IF media_hostname %--> <!--% IF media_baseurl %-->
https://<!--% media_hostname %-->/<!--% ELSE %--> <!--% media_baseurl %--><!--% ELSE %-->
<!--% baseurl %-->/<!--% END %--> <!--% IF baseurl %--><!--% baseurl %--><!--% ELSE %-->/<!--% END %-->
<!--% END %--> <!--% END %-->
<!--% MACRO step_navigation(baseurl, links, folder) BLOCK %--> <!--% MACRO step_navigation(baseurl, links, folder) BLOCK %-->