From cb08f26eed079f3e68d163d3ae737a53c6d8d80a Mon Sep 17 00:00:00 2001 From: octospacc Date: Mon, 16 Jun 2025 01:22:42 +0200 Subject: [PATCH] Tomes! --- _includes/footer.html | 2 +- _includes/head.html | 2 +- _includes/header.html | 2 +- _includes/tome-id | 1 + _includes/tome.json | 8 +++ _layouts/tome.html | 50 +++++++++++++------ ...ed-my-best-friend-to-shut-my-parents-up.md | 9 ++++ _tomes/en/koro-koro-soushi-2.md | 7 +++ _tomes/en/koro-koro-soushi.md | 7 +++ _tomes/en/toradora/1.md | 13 +++++ _tomes/en/welcome-to-the-nhk.md | 8 +++ _tomes/it/dieci-cose-che-ho-imparato.md | 1 + .../it/il-lato-oscuro-dei-social-network.md | 13 +++++ _tomes/it/italian-crackdown.md | 1 + _tomes/it/parla-come-manga.md | 13 +++++ _tomes/it/seneca-tra-gli-zombie.md | 22 ++++++++ _tomes/it/welcome-to-the-nhk.md | 12 +++++ index.html | 26 +++++----- manifest.json | 2 +- reader/index.html | 41 ++++++++++++--- tomes.json | 8 +++ 21 files changed, 209 insertions(+), 39 deletions(-) create mode 100644 _includes/tome-id create mode 100644 _includes/tome.json create mode 100644 _tomes/en/i-married-my-best-friend-to-shut-my-parents-up.md create mode 100644 _tomes/en/koro-koro-soushi-2.md create mode 100644 _tomes/en/koro-koro-soushi.md create mode 100644 _tomes/en/toradora/1.md create mode 100644 _tomes/en/welcome-to-the-nhk.md create mode 100644 _tomes/it/il-lato-oscuro-dei-social-network.md create mode 100644 _tomes/it/parla-come-manga.md create mode 100644 _tomes/it/seneca-tra-gli-zombie.md create mode 100644 _tomes/it/welcome-to-the-nhk.md create mode 100644 tomes.json diff --git a/_includes/footer.html b/_includes/footer.html index 19e7dad..8c714df 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -10,7 +10,7 @@ diff --git a/_includes/head.html b/_includes/head.html index 01d16de..8c77944 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,4 +8,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 58dc1de..03063e4 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,7 +1,7 @@
\ No newline at end of file diff --git a/_includes/tome-id b/_includes/tome-id new file mode 100644 index 0000000..6fa5c51 --- /dev/null +++ b/_includes/tome-id @@ -0,0 +1 @@ +{{ include.tome.id | split: '/' | slice: 2 | first }} \ No newline at end of file diff --git a/_includes/tome.json b/_includes/tome.json new file mode 100644 index 0000000..2363b12 --- /dev/null +++ b/_includes/tome.json @@ -0,0 +1,8 @@ +{% assign tome = include.tome %} +{% capture tome-id %}{% include tome-id tome=tome %}{% endcapture %} +{ + "slug": {{ tome-id | jsonify }}, + "folder": {{ tome.folder | jsonify }}, + "file": {{ tome.file | jsonify }}, + "chapters": {{ tome.chapters | jsonify }} +} diff --git a/_layouts/tome.html b/_layouts/tome.html index 7fe72dd..1345efa 100644 --- a/_layouts/tome.html +++ b/_layouts/tome.html @@ -1,21 +1,19 @@ - + {{ page.title }} | {{ site.name }} {% include head.html %} - - {% capture cover %}{{ site.extra.store }}/tomes/{{ page.slug }}/{{ page.cover }}{% endcapture %} - + {% capture id %}{% include tome-id tome=page %}{% endcapture %} + {% capture cover %}{{ site.extra.store }}/tomes/{{ id }}/{{ page.cover }}{% endcapture %} + {% capture tome_json %}{% include tome.json tome=page %}{% endcapture %} {% capture embed %}{ - "page": { - "slug": {{ page.slug | jsonify }}, - "file": {{ page.file | jsonify }} - }, + "page": {{ tome_json }}, "extra": {{ site.extra | jsonify }} }{% endcapture %} + {% include header.html %} @@ -25,17 +23,29 @@
Title

{{ page.title }}

+

{{ page.subtitle }}

+ Cover - Cover + About {{ page.content }} + Authors

{{ page.authors }}

+ Year

{{ page.year }}

+ + {% if page.isbn %} + ISBN +

{{ page.isbn }}

+ {% endif %} + + {% if page.webpage %} Webpage {{ page.webpage }} + {% endif %}