Files
HugoBlox-kit/layouts/_default/baseof.html
T
George Cushen a8c4f887e5 fix: navbar active link highlighting and scrolling
Fixes some edge cases caused due to responsive navbar height and dynamic
Portfolio widget height, as well as case where offset was non-integer,
requiring float to be rounded up.

Fix #1199
2019-07-11 20:54:52 +01:00

26 lines
592 B
HTML

<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default "en-us" }}">
{{ partial "site_head.html" . }}
<body id="top" data-spy="scroll" data-target="{{ if or .IsHome (eq .Type "widget_page") }}#navbar-main{{else}}#TableOfContents{{end}}" {{ if not (.Scratch.Get "light") }}class="dark"{{end}}>
{{ partial "search" . }}
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "site_js.html" . }}
{{ if ne .Type "docs" }}
<div class="container">
{{ partial "site_footer.html" . }}
</div>
{{ end }}
{{ partial "citation.html" . }}
</body>
</html>