{{$brand := index .ThemesExt "brand"}}
<header class="site-header">
  <div class="topbar">
    <div class="wrap topbar-inner">
      <span>展示型商城模板：商品浏览、规格说明、在线咨询，无支付流程</span>
      {{$contact := index .ThemesExt "contact"}}
      {{if $contact}}<a href="mailto:{{$contact.email}}">{{$contact.email}}</a>{{end}}
    </div>
  </div>
  <div class="wrap nav-row">
    <a class="brand" href="/">
      <span class="brand-mark">优</span>
      <span>{{if $brand}}{{$brand}}{{else}}优选集市{{end}}</span>
    </a>
    <button class="nav-toggle" type="button" aria-label="展开导航">菜单</button>
    <nav class="main-nav">
      {{range .Columns}}
      {{if .Column}}<a href="{{.Column.URL}}" class="{{if .IsSelect}}active{{end}}">{{.Column.Name}}</a>{{end}}
      {{end}}
    </nav>
    <a class="nav-cta" href="/message">咨询商品</a>
  </div>
</header>
