page.html 2.3 KB
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
{% extends template.self %}
{% block body %}
<div class="book">
	<div class="header-inner">
		<!-- LOGO -->
		<div class="logo"></div>
		<span class="title"></span>

		<!-- Search -->
		{% block search_input %}{% endblock %}

		<!-- Nav -->
		<ul class="header-nav">
			{% for nav in book.themeFexa.nav -%}
			<li>
				<a href="{{nav.url}}" target="{{ nav.target}}">{{ nav.name }}</a>
			</li>
			{%- endfor %}
		</ul>
	</div>

	<div class="book-summary">
		<div class="book-summary-title">文档目录</div>
		{% 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>
	<script>
		var gitbook = gitbook || [];
		gitbook.push(function() {
			gitbook.page.hasChanged({{ template.getJSContext()|dump|safe }});
		});
	</script>
</div>
{% endblock %}