Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reduce duplicate code in template handlebar file.

  • Loading branch information...
commit d1cb207d0897bc3720f5167ca36483ba2b2001a0 1 parent 4325c87
@JohnAlbin JohnAlbin authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/template/index.html
View
8 lib/template/index.html
@@ -47,12 +47,10 @@
the "#whenDepth 1" block as seen below.
}}
{{#eachSection rootNumber}}
- {{#whenDepth 1}}
- <h1 class="kss-title"><span class="kss-ref">{{ reference }}.0</span> - {{ header }}</h1>
- {{else}}
- <section class="kss-depth-{{ refDepth }}">
- <h1 class="kss-title"><span class="kss-ref">{{ reference }}</span> - {{ header }}</h1>
+ {{#whenDepth 1}} {{else}}
+ <section class="kss-depth-{{ refDepth }}">
{{/whenDepth}}
+ <h1 class="kss-title"><span class="kss-ref">{{ reference }}{{#whenDepth 1}}.0{{/whenDepth}}</span> - {{ header }}</h1>
{{#ifAny markup modifiers}}
<div class="kss-box">{{html description}}</div>
<table class="kss-mod-list">
Please sign in to comment.
Something went wrong with that request. Please try again.