Initial commit
This commit is contained in:
20
themes/hugo-academic-master/layouts/index.html
Normal file
20
themes/hugo-academic-master/layouts/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ 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" . }}
|
||||
Reference in New Issue
Block a user