From ea177f53a4a2888eb1ecd589c1e83511611eaee6 Mon Sep 17 00:00:00 2001 From: Sebastian Heuer Date: Mon, 26 Jun 2023 14:41:10 +0200 Subject: [PATCH] move title and version info above search --- book.json | 2 +- book/_layouts/website/page.html | 33 ++++++++++++++ book/_layouts/website/summary.html | 72 ------------------------------ book/closing/CHANGELOG.md | 6 +++ book/styles/website.css | 11 ++++- 5 files changed, 49 insertions(+), 75 deletions(-) create mode 100644 book/_layouts/website/page.html delete mode 100644 book/_layouts/website/summary.html diff --git a/book.json b/book.json index 72adae2..d892983 100644 --- a/book.json +++ b/book.json @@ -7,5 +7,5 @@ "paperSize": "a5", "embedFonts": true }, - "version": "1.1.1" + "version": "1.1.2" } diff --git a/book/_layouts/website/page.html b/book/_layouts/website/page.html new file mode 100644 index 0000000..93d83b2 --- /dev/null +++ b/book/_layouts/website/page.html @@ -0,0 +1,33 @@ +{% extends "../../../node_modules/@honkit/honkit-plugin-theme-default/_layouts/website/page.html" %} + +{% block book_sidebar %} +
+

Engineering Culture at celebrate company

+ Version {{ config.version }} +
+ + {{ super() }} +{% endblock %} + +{% block search_results %} +
+
+ {{ super() }} +
+
+
+ {% block search_has_results %} +

{{ 'SEARCH_RESULTS_TITLE'|t|safe }}

+
    + {% endblock %} +
    +
    + {% block search_no_results %} +

    {{ 'SEARCH_NO_RESULTS_TITLE'|t|safe }}

    + {% endblock %} +
    +
    +
    +{% endblock %} diff --git a/book/_layouts/website/summary.html b/book/_layouts/website/summary.html deleted file mode 100644 index 712363c..0000000 --- a/book/_layouts/website/summary.html +++ /dev/null @@ -1,72 +0,0 @@ -{% macro articles(_articles) %} -{% for article in _articles %} -
  • - {% if article.path and getPageByPath(article.path) %} - - {% elif article.url %} - - {% else %} - - {% endif %} - {% if article.level != "0" and config.pluginsConfig['theme-default'].showLevel %} - {{ article.level }}. - {% endif %} - {{ article.title }} - {% if article.path or article.url %} - - {% else %} - - {% endif %} - - {% if article.articles.length > 0 %} - - {% endif %} -
  • -{% endfor %} -{% endmacro %} - - diff --git a/book/closing/CHANGELOG.md b/book/closing/CHANGELOG.md index 6af07e3..8de81c2 100644 --- a/book/closing/CHANGELOG.md +++ b/book/closing/CHANGELOG.md @@ -1,5 +1,11 @@ ## Changelog +### 1.1.2 + +#### General + +- moved title and version information above search bar + ### 1.1.1 #### General diff --git a/book/styles/website.css b/book/styles/website.css index 5cc38d2..8fab80f 100644 --- a/book/styles/website.css +++ b/book/styles/website.css @@ -1,8 +1,15 @@ -.book-summary ul.summary li.title h2 { - padding: 10px 15px 0 15px; +.book-summary .title { + margin: 15px 0; +} +.book-summary .title h2 { + padding: 10px 15px; margin: 0; } +.book-summary .title small { + padding: 10px 15px; +} + .book.color-theme-1 .book-summary ul.summary li.header { color: #afa790; }