Add bootstrap Sphinx theme
This commit is contained in:
17
doc/bootstrap/relations.html
Normal file
17
doc/bootstrap/relations.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{# Switch to icon instead of text in `sm` view size for BS3 only. #}
|
||||
{%- if prev %}
|
||||
<li>
|
||||
<a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}">
|
||||
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left visible-sm"></span>{%- endif -%}
|
||||
<span class="hidden-sm">{{ "«"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif %}
|
||||
{%- if next %}
|
||||
<li>
|
||||
<a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
|
||||
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right visible-sm"></span>{%- endif -%}
|
||||
<span class="hidden-sm">{{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "»"|safe }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user