{% macro navlist(url,title) -%}
  <li><a href="{{ url }}">{{ title }}</a></li>
{%- endmacro %}

<nav class="navbar navbar-default navbar-fixed-top" style="background:#fff">
  <div class="container-fluid col-md-offset-1 col-md-10">
    <div class="navbar-header" style="padding-top:5px;">
      <a class="navbar-brand" href="{{ url_for('forums.index')}}" style="padding:0px">
        <img alt="Honmaple" src="{{url_for('static',filename='images/header.png')}}" style="width:48px;">
      </a>
      <div class="navbar-brand" style="padding-top:2;padding-left:16px;margin-top:-12px;">
        <span style="font-size:20px;color:#EB5424"><b class="text-capitalize">{{ SITE['title'] }}</b></span>
        <br/>
        <small style="font-size:10px">{{ _(SITE['description']) }}</small>
      </div>
    </div>
    <div class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        {{ navlist(url_for('forums.forums'),_('Forums')) }}
        {{ navlist(url_for('docs.list'),_('Wiki')) }}
        {{ navlist('http://honmaple.org',_('Blog')) }}
        {{ navlist(url_for('topic.good'),_('Good')) }}
      </ul>
      <form action="{{ url_for('search.search') }}" class="navbar-form navbar-right" style="margin-top:10px;" >
        <div class="form-group has-feedback">
          <input class="form-control input-sm" name="keyword" placeholder="搜索内容" type="text" value="">
          <i class="fa fa-search form-control-feedback"></i>
        </div>
      </form>
    </div>
  </div>
</nav>

