Change navbar links and make a dropdown menu for tournaments.
This commit is contained in:
parent
aa1c96bf6f
commit
335b45526f
@ -1,5 +0,0 @@
|
||||
- url: /tournaments/
|
||||
title: Турниры
|
||||
|
||||
- url: /reviews/
|
||||
title: Обзоры
|
2
_data/tournaments.yml
Normal file
2
_data/tournaments.yml
Normal file
@ -0,0 +1,2 @@
|
||||
- url: 2014/1-thematic/
|
||||
title: Тематический
|
@ -13,9 +13,15 @@
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
{% for link in site.data.nav-links %}
|
||||
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
|
||||
{% endfor %}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Турниры <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
{% for trn in site.data.tournaments %}
|
||||
<li><a href="/tournaments/{{ trn.url }}">{{ trn.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="/reviews/">Обзоры</a></li>
|
||||
</ul>
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user