diff options
author | Thomas Letan <contact@thomasletan.fr> | 2020-02-08 14:27:47 +0100 |
---|---|---|
committer | Thomas Letan <contact@thomasletan.fr> | 2020-02-08 14:27:47 +0100 |
commit | 81a9cb37694e7ce27832ff76b9ff9bc02e9f3835 (patch) | |
tree | f6502557c8e68cf438e6855ce4164961be681f81 | |
parent | chore: Add a pre-commit hook script to check formatting (diff) |
fix: Make the static template work with untitled chapters
-rw-r--r-- | templates/epub/chapter.xhtml | 2 | ||||
-rw-r--r-- | templates/static/chapter.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/epub/chapter.xhtml b/templates/epub/chapter.xhtml index cbbc9da..095ec3d 100644 --- a/templates/epub/chapter.xhtml +++ b/templates/epub/chapter.xhtml @@ -13,7 +13,7 @@ {% if numbering %} – {{ number }} – <span class="title"> - {{ chapter.title | upper }} + {% filter upper %}{{ chapter.title }}{% endfilter %} </span> {% else %} {% filter upper %}{{ chapter.title }}{% endfilter %} diff --git a/templates/static/chapter.html b/templates/static/chapter.html index 2c1832f..32d731a 100644 --- a/templates/static/chapter.html +++ b/templates/static/chapter.html @@ -34,10 +34,10 @@ {% if numbering %} – {{ number }} – <span class="title"> - {{ chapter.title | upper }} + {% filter upper %}{{ chapter.title }}{% endfilter %} </span> {% else %} - {{ chapter.title | upper }} + {% filter upper %}{{ chapter.title }}{% endfilter %} {% endif %} </h1> |