drop check for outdated siteRootUrl property; document using siteRootPath as fallback...
authorDan Allen <dan@opendevise.com>
Fri, 14 Jan 2022 01:58:59 +0000 (18:58 -0700)
committerDan Allen <dan@opendevise.com>
Fri, 14 Jan 2022 01:58:59 +0000 (18:58 -0700)
docs/modules/ROOT/pages/templates.adoc
src/partials/header-content.hbs

index 9b5e9df..d156c0d 100644 (file)
@@ -182,6 +182,7 @@ s| env
 s| siteRootPath
 | The relative path to the root of the published site.
 If a site start page is defined, the visitor will be redirected from this location to the start page.
+Can be used as a fallback when a site URL is not set.
 
 s| uiRootPath
 | The relative path to the root directory of the UI.
index 48fff0a..8a094a4 100644 (file)
@@ -1,7 +1,7 @@
 <header class="header">
   <nav class="navbar">
     <div class="navbar-brand">
-      <a class="navbar-item" href="{{{or site.url (or siteRootUrl siteRootPath)}}}">{{site.title}}</a>
+      <a class="navbar-item" href="{{{or site.url siteRootPath}}}">{{site.title}}</a>
       {{#if env.SITE_SEARCH_PROVIDER}}
       <div class="navbar-item search hide-for-print">
         <div id="search-field" class="field">