mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Don't include prev/next href if no prev/next link exists
This commit is contained in:
@@ -79,8 +79,8 @@
|
||||
-->
|
||||
<!-- End navbar -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li {% if not previous_url %}class="disabled"{% endif %}><a rel="next" href="{% if previous_url %}{{ previous_url }}{% else %}{{ url }}{% endif %}">Previous</a></li>
|
||||
<li {% if not next_url %}class="disabled"{% endif %}><a rel="prev" href="{% if next_url %}{{ next_url }}{% else %}{{ url }}{% endif %}">Next</a></li>
|
||||
<li {% if not previous_url %}class="disabled"{% endif %}><a rel="next" {% if previous_url %}href="{{ previous_url }}"{% endif %}>Previous</a></li>
|
||||
<li {% if not next_url %}class="disabled"{% endif %}><a rel="prev" {% if next_url %}href="{{ next_url }}"{% endif %}>Next</a></li>
|
||||
<!--<li class="active"><a href="./">Fixed top</a></li>-->
|
||||
</ul>
|
||||
</div><!--/.nav-collapse -->
|
||||
|
||||
Reference in New Issue
Block a user