Commit 7d5d2b5b authored by Sean Madsen's avatar Sean Madsen

book home page - add category and fix broken link

parent 3694fcf8
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<ul> <ul>
{% set default_language = book.getDefaultLanguage() %} {% set default_language = book.getDefaultLanguage() %}
{% set default_version = default_language.getDefaultVersion() %} {% set default_version = default_language.getDefaultVersion() %}
{% set default_url = book.slug ~ "/" ~ default_language.code ~ "/" {% set default_url = "/" ~ book.slug ~ "/" ~ default_language.code ~ "/"
~ default_version.name %} ~ default_version.name %}
{% set default_title = default_language.nativeName() ~ " / " ~ default_version.name %} {% set default_title = default_language.nativeName() ~ " / " ~ default_version.name %}
<li>Default edition: <a href="{{ default_url }}">{{ default_title }}</a></li> <li>Default edition: <a href="{{ default_url }}">{{ default_title }}</a></li>
{# <li>Category: {{ book.category }}</li> #} {# uncomment when we have categorization #} <li>Category: {{ book.category }}</li>
</ul> </ul>
<h2>Description</h2> <h2>Description</h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment