<#--
  Sub-themes may override this file to change the format of the title - for example, if you want a dash between
  the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
  (i.e., the way it uses siteTitle.ftl and the siteTitle variable).
  -->
<#macro titleFormat pageTitle>
  <#include "siteTitle.ftl" />
${siteTitle}: ${pageTitle}<#t>
</#macro>

<#--
  Sub-themes may override this file to change the format of the title - for example, if you want a dash between
  the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
  (i.e., the way it uses siteTitle.ftl and the siteTitle variable).
  -->
<#macro titleFormat pageTitle>
  <#include "siteTitle.ftl" />
  <#if pageTitle?length gt 0>
  ${siteTitle}: ${pageTitle}<#t>
  <#else>
  ${siteTitle}<#t>
  </#if>
</#macro>

Handle pages with no subtitle better
Handle pages with no subtitle better

The page title can now be set to an empty string, without being followed by
a colon with nothing after it.
