fix
This commit is contained in:
36
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/page.html
generated
vendored
Normal file
36
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/page.html
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}{{ page.title }}{% endblock %}
|
||||
{% block description %}{{ page.description }}{% endblock %}
|
||||
|
||||
{% block style %}
|
||||
{### Include theme css before plugins css ###}
|
||||
{% if not fileExists(config.styles.print) %}
|
||||
{% if options.format %}
|
||||
<link rel="stylesheet" href="{{ (options.format + ".css")|resolveAsset }}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ "ebook.css"|resolveAsset }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{### Custom stylesheets for the book ###}
|
||||
|
||||
{% for type, style in config.styles %}
|
||||
{% if fileExists(style) and (type == "ebook" or type == "print" or type == options.format) %}
|
||||
<link rel="stylesheet" href="{{ style|resolveFile }}">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="page">
|
||||
{% block page %}
|
||||
<h1 class="book-chapter book-chapter-{{ page.depth }}">{{ page.title }}</h1>
|
||||
<div class="section">
|
||||
{{ page.content|safe }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
8
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/pdf_footer.html
generated
vendored
Normal file
8
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/pdf_footer.html
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "./page.html" %}
|
||||
|
||||
{% block body %}
|
||||
<div class="pdf-footer">
|
||||
<span>{{ page.section }}</span>
|
||||
<span class="footer-pages-count">{{ page.num }}</span>
|
||||
</div>
|
||||
{% endblock %}
|
7
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/pdf_header.html
generated
vendored
Normal file
7
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/pdf_header.html
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends "./page.html" %}
|
||||
|
||||
{% block body %}
|
||||
<div class="pdf-header">
|
||||
<span>{{ page.title }}</span>
|
||||
</div>
|
||||
{% endblock %}
|
58
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/summary.html
generated
vendored
Normal file
58
book/node_modules/@honkit/honkit-plugin-theme-default/_layouts/ebook/summary.html
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
{% extends "./page.html" %}
|
||||
|
||||
{% block title %}{{ "SUMMARY"|t }}{% endblock %}
|
||||
|
||||
{% macro articles(_articles) %}
|
||||
{% for article in _articles %}
|
||||
<li>
|
||||
<span class="inner">
|
||||
{% if article.path or article.url %}
|
||||
{% if article.path %}
|
||||
<a href="{{ article.path|contentURL }}{{ article.anchor }}">{{ article.title }}</a>
|
||||
{% else %}
|
||||
<a target="_blank" href="{{ article.url }}">{{ article.title }}</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<span>{{ article.title }}</span>
|
||||
{% endif %}
|
||||
{% if 1 %}
|
||||
<span class="page">{{ article.level }}</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% if article.articles.length > 0 %}
|
||||
<ol>
|
||||
{{ articles(article.articles) }}
|
||||
</ol>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block page %}
|
||||
<div class="section toc">
|
||||
<h1>{{ "SUMMARY"|t }}</h1>
|
||||
<ol>
|
||||
{% for part in summary.parts %}
|
||||
{% if part.title %}
|
||||
<li class="part-title">
|
||||
<h2>{{ part.title }}</h2>
|
||||
</li>
|
||||
{% endif %}
|
||||
{{ articles(part.articles) }}
|
||||
|
||||
{% if not loop.last %}
|
||||
<li class="divider"></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if glossary.path %}
|
||||
<li>
|
||||
<span class="inner">
|
||||
<a href="{{ ('/' + glossary.path)|contentURL }}">{{ "GLOSSARY"|t }}</a>
|
||||
</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user