header.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <header>
  2. <a class="scroll-point pt-top" name="top"></a>
  3. <nav class="navbar navbar-inverse navbar-fixed-top">
  4. <div class="container-fluid">
  5. <div class="navbar-header">
  6. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  7. <span class="sr-only">Toggle navigation</span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. </button>
  12. <a class="navbar-brand" href="{{ site.baseurl }}/"><img id="logo_top" src="{{ site.baseurl }}/static/img/cordova-logo-newbrand.svg"/></a>
  13. </div>
  14. <div id="navbar" class="navbar-collapse collapse">
  15. <div class="nav_bar_center">
  16. <ul class="nav navbar-nav">
  17. <li {% if page.docs_tab %}class="active"{% endif %}>
  18. <a href="{{ site.baseurl }}/docs/zh-cn/{{ site.default_linked_docs_version }}/">cordova中文文档</a>
  19. </li>
  20. <li {% if page.plugins_tab %}class="active"{% endif %}>
  21. <a href="{{ site.baseurl }}/plugins">插件</a>
  22. </li>
  23. <li {% if page.blog_tab %}class="active"{% endif %}>
  24. <a href="{{ site.baseurl }}/blog" id="blog_button">cordova博客<span class="badge" id="new_blog_count"></span></a>
  25. </li>
  26. <li {% if page.blog_tab %}class="active"{% endif %}>
  27. <a href="{{ site.baseurl }}/community" id="blog_button">cordova中文社区<span class="badge" id="new_blog_count"></span></a>
  28. </li>
  29. <li {% if page.contribute_tab %}class="active"{% endif %}>
  30. <a href="{{ site.baseurl }}/contribute">贡献</a>
  31. </li>
  32. <li>
  33. <a href="{{ site.baseurl }}/#getstarted">快速开始</a>
  34. </li>
  35. <li>
  36. <form class="navbar-form navbar-right" id="header-search-form" role="search">
  37. <div class="input-group">
  38. {% if page.version %}
  39. {% assign version = page.version %}
  40. {% else %}
  41. {% assign version = site.latest_docs_version %}
  42. {% endif %}
  43. <input id="header-search-field" type="text" placeholder="Search '{{ version }}' docs..." class="form-control hidden-xs" autocomplete="off">
  44. </div>
  45. </form>
  46. </li>
  47. </ul>
  48. </div>
  49. </div><!--/.navbar-collapse -->
  50. </div>
  51. </nav>
  52. <div id="_fixed_navbar_spacer" style="padding-top:50px"></div>
  53. </header>