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
-
+
About
{{ page.content }}
+
Authors
{{ page.authors }}
+
Year
{{ page.year }}
+
+ {% if page.isbn %}
+ ISBN
+ {{ page.isbn }}
+ {% endif %}
+
+ {% if page.webpage %}
Webpage
{{ page.webpage }}
+ {% endif %}