From 147babd6da963678721a5865d7f6f04271678886 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 2 Jan 2018 17:18:37 -0700 Subject: [PATCH] format Handlebars templates to make them more readable --- src/partials/breadcrumbs.hbs | 12 +++++++----- src/partials/navigation-explore.hbs | 4 +++- src/partials/navigation-tree.hbs | 4 +++- src/partials/page-versions.hbs | 4 +++- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/partials/breadcrumbs.hbs b/src/partials/breadcrumbs.hbs index 282b292..bee715a 100644 --- a/src/partials/breadcrumbs.hbs +++ b/src/partials/breadcrumbs.hbs @@ -6,11 +6,13 @@ {{/unless}} {{/if}} {{#each page.breadcrumbs}} - {{#if (and ./url (eq ./urlType 'internal'))}} -
  • {{{./content}}}
  • - {{else}} -
  • {{{./content}}}
  • - {{/if}} +
  • + {{~#if (and ./url (eq ./urlType 'internal'))~}} + {{{./content}}} + {{~else~}} + {{{./content}}} + {{~/if~}} +
  • {{/each}} diff --git a/src/partials/navigation-explore.hbs b/src/partials/navigation-explore.hbs index aca6f5e..9b15841 100644 --- a/src/partials/navigation-explore.hbs +++ b/src/partials/navigation-explore.hbs @@ -9,7 +9,9 @@ {{{./title}}}