Files
HugoBlox-kit/layouts/index.html
T
George Cushen b99e5a1e21 Add basic multilingual support
Multilingual support added for:
* homepage widget system
* navigation bar links
* 'more posts/publications/talks' links in widgets
2017-02-13 19:51:28 +00:00

21 lines
606 B
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<!-- Flag for jQuery -->
<span id="homepage" style="display: none"></span>
<!-- Widgets -->
{{ range $index, $page := where .Data.Pages "Type" "home" }}
{{ $params := dict "root" $ "page" $page }}
{{ $widget := printf "widgets/%s.html" ( or $page.Params.widget "custom" ) }}
<section id="{{ $page.File.TranslationBaseName }}" class="home-section">
<div class="container">
{{ partial $widget $params }}
</div>
</section>
{{ end }}
<!-- Page Footer -->
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}