    {{- if or (not .Dark) (is .Dark) }}
    <link rel="stylesheet" href="/_/static/dark.css?v={{ .Version }}" {{ if not .Dark }}media="(prefers-color-scheme:dark)"{{ end }}>
    {{- end }}
  </head>
  <body{{ if .HideSidebar  }} class="sidetoggle"{{ end }}>
    <noscript>
      <link rel="stylesheet" href="/_/static/noscript.css?v={{ .Version }}">
    </noscript>
    {{ template "nav.html" . -}}
    {{- if and (not .ShowNSFW) .Community .Community.CommunityView.Community.NSFW }}
      {{ template "nsfw.html