<nav>
    {{ partial "component/brand" . }}
    {{ partial "component/search" . }}

    {{- if (gt (where .Site.RegularPages "Section" "blog" | len) 0) -}}
      <a class="site-menu-shortcut-link" href="{{ "/blog" | relURL }}">Blog Posts</a>
    {{- end -}}
    {{- if (gt (where .Site.RegularPages "Section" "notes" | len) 0) -}}
      <a class="site-menu-shortcut-link" href="{{ "/notes" | relURL }}">Recent Notes</a>
    {{- end -}}
    <p class="site-menu-tags-title"><b>Tags</b></p>
    <ul>
        {{- ran