mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-22 12:16:34 +00:00
Example: `content/home/about.md` widget is now linked from the menu bar by setting the relevant URL as "#about" in `config.toml`.
21 lines
599 B
HTML
21 lines
599 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.BaseFileName }}" class="home-section">
|
|
<div class="container">
|
|
{{ partial $widget $params }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<!-- Page Footer -->
|
|
{{ partial "footer_container.html" . }}
|
|
{{ partial "footer.html" . }}
|