gitbook-plugin-theme-seer
Version:
Gitbook theme for BingoPaaS docs
105 lines (92 loc) • 2.84 kB
HTML
{% extends template.self %}
{% block body %}
<div class="book">
<div class="header-inner">
<!-- LOGO -->
<div class="logo-wrapper">
<div class="logo"></div>
</div>
<span class="title"></span>
<div class="header-book">
{% include "website/header.html" %}
</div>
<div class="collapse" id="seer-collapse">
<i class="fa fa-align-justify"></i>
</div>
<div class="version_div">
<span class="current-wrapper">
<span class="current"></span>
<span class="arrow-down"></span>
</span>
<div class="dropdown-menu">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<ul></ul>
</div>
</div>
<!-- Search -->
{% block search_input %}{% endblock %}
<!-- Nav -->
<ul class="header-nav">
{% for nav in book.themeSeer.nav -%}
<li>
<a href="{{nav.url}}" target="{{ nav.target}}">{{ nav.name }}</a>
</li>
{%- endfor %}
</ul>
</div>
<div class="book-summary">
{% block book_sidebar %}
{% block book_summary %}
<nav role="navigation">
{% include "website/summary.html" %}
</nav>
{% endblock %}
{% endblock %}
</div>
<!-- Content nav -->
<div class="book-anchor">
<div class="book-anchor-title">在这篇文章中:</div>
<div class="book-anchor-body">
</div>
</div>
<div class="book-body">
{% block book_body %}
<div class="body-inner">
{% block book_inner %}
{% include "website/header.html" %}
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
{% block search_results %}
<section class="normal markdown-section">
{% block page %}
{{ page.content|safe }}
{% endblock %}
</section>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% block book_navigation %}
{% if page.previous and page.previous.path %}
<a href="{{ page.previous.path|resolveFile }}{{ page.previous.anchor }}" class="navigation navigation-prev {% if not (page.next and page.next.path) %}navigation-unique{% endif %}" aria-label="Previous page: {{ page.previous.title }}">
<i class="fa fa-angle-left"></i>
</a>
{% endif %}
{% if page.next and page.next.path %}
<a href="{{ page.next.path|resolveFile }}{{ page.next.anchor }}" class="navigation navigation-next {% if not (page.previous and page.previous.path) %}navigation-unique{% endif %}" aria-label="Next page: {{ page.next.title }}">
<i class="fa fa-angle-right"></i>
</a>
{% endif %}
{% endblock %}
{% endblock %}
<div class="mask" id="mask"></div>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({{ template.getJSContext()|dump|safe }});
});
</script>
</div>
{% endblock %}