diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html index da3dec9..8682125 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -36,23 +36,19 @@ | |||
36 | <nav class="c-nav"> | 36 | <nav class="c-nav"> |
37 | <div class="c-nav__items l-container"> | 37 | <div class="c-nav__items l-container"> |
38 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> | 38 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> |
39 | $for(menus.main)$ | 39 | $for(menus.main.items)$ |
40 | <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a> | 40 | <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a> |
41 | $endfor$ | 41 | $endfor$ |
42 | </div> | 42 | </div> |
43 | </nav> | 43 | </nav> |
44 | 44 | ||
45 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> | 45 | $if(section.is_index)$ |
46 | <div class="c-page__content"> | ||
47 | $if(section.is_index)$ | ||
48 | ${layouts/index()} | 46 | ${layouts/index()} |
49 | $elseif(layout.is_dated_list)$ | 47 | $elseif(layout.is_dated_list)$ |
50 | ${layouts/dated_list()} | 48 | ${layouts/dated_list()} |
51 | $else$ | 49 | $else$ |
52 | ${layouts/page()} | 50 | ${layouts/page()} |
53 | $endif$ | 51 | $endif$ |
54 | </div> | ||
55 | </main> | ||
56 | </body> | 52 | </body> |
57 | 53 | ||
58 | </html> | 54 | </html> |