baseof.html 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. {{- $language_code := site.LanguageCode | default "en-us" -}}
  3. <html lang="{{$language_code}}" {{ if in site.Data.i18n.rtl.rtl $language_code }}dir="rtl"{{end}}>
  4. {{ partial "site_head" . }}
  5. {{ $show_navbar := site.Params.main_menu.enable | default true }}
  6. {{- $highlight_active_link := site.Params.main_menu.highlight_active_link | default true -}}
  7. <body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="{{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}">
  8. {{ partial "search" . }}
  9. {{ partial "navbar" . }}
  10. {{ block "main" . }}{{ end }}
  11. {{ partial "site_js" . }}
  12. {{/* Docs and Updates layouts include the site footer in a different location. */}}
  13. {{ if not (in (slice "book" "docs" "updates") .Type) }}
  14. <div class="container">
  15. {{ partial "site_footer" . }}
  16. </div>
  17. {{ end }}
  18. {{ partial "citation" . }}
  19. </body>
  20. </html>