提交 b92d6fce 编写于 作者: S Samy Pessé

Add template for multilingual books

上级 5af4859c
{% extends "./layout.html" %}
{% block title %}{{ "LANGS_CHOOSE"|t }} · {{ super() }}{% endblock %}
{% block body %}
<div class="book-langs-index" role="navigation">
<div class="inner">
<h3>{{ "LANGS_CHOOSE"|t }}</h3>
<ul class="languages">
{% for lang in languages.list %}
<li>
<a href="../{{ lang.id }}/">{{ lang.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}
{% extends "layout.html" %}
{% block head %}
{{ super() }}
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ "images/apple-touch-icon-precomposed-152.png"|resolveAsset }}">
<link rel="shortcut icon" href="{{ "images/favicon.ico"|resolveAsset }}" type="image/x-icon">
{% endblock %}
{% block style %}
<link rel="stylesheet" href="{{ "style.css"|resolveAsset }}">
{{ super() }}
{% endblock %}
{% block body %}{% endblock %}
{% extends "layout.html" %} {% extends "./layout.html" %}
{% block title %}{{ page.title }} · {{ super() }}{% endblock %} {% block title %}{{ page.title }} · {{ super() }}{% endblock %}
{% block head %} {% block head %}
{{ super() }} {{ super() }}
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ "images/apple-touch-icon-precomposed-152.png"|resolveAsset }}">
<link rel="shortcut icon" href="{{ "images/favicon.ico"|resolveAsset }}" type="image/x-icon">
{% if page.next and page.next.path %} {% if page.next and page.next.path %}
<link rel="next" href="{{ page.next.path|resolveFile }}" /> <link rel="next" href="{{ page.next.path|resolveFile }}" />
{% endif %} {% endif %}
...@@ -19,11 +12,6 @@ ...@@ -19,11 +12,6 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block style %}
<link rel="stylesheet" href="{{ "style.css"|resolveAsset }}">
{{ super() }}
{% endblock %}
{% block javascript %} {% block javascript %}
<script src="{{ "app.js"|resolveAsset }}"></script> <script src="{{ "app.js"|resolveAsset }}"></script>
{% for resource in plugins.resources.js %} {% for resource in plugins.resources.js %}
...@@ -58,11 +46,9 @@ ...@@ -58,11 +46,9 @@
<div class="page-wrapper" tabindex="-1" role="main"> <div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner"> <div class="page-inner">
<section class="section-normal">
{% block page %} {% block page %}
{{ page.content|safe }} {{ page.content|safe }}
{% endblock %} {% endblock %}
</section>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册