summaryrefslogtreecommitdiff
path: root/templates/frontmatter-template.adoc.erb
diff options
context:
space:
mode:
authorCharlotte Koch <charlotte@magentastripe.com>2024-11-19 14:47:35 -0800
committerCharlotte Koch <charlotte@magentastripe.com>2024-11-19 14:47:35 -0800
commitdf6ea623721722e635d1f136d29c3d29aebe7a62 (patch)
tree6397a15847e24e675a041a72754b0a5387f0f459 /templates/frontmatter-template.adoc.erb
parentf5b890675338d964c0bac9c571081ae48e64fe9a (diff)
Add a bunch of missing files for "willora new"
Diffstat (limited to 'templates/frontmatter-template.adoc.erb')
-rw-r--r--templates/frontmatter-template.adoc.erb29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/frontmatter-template.adoc.erb b/templates/frontmatter-template.adoc.erb
new file mode 100644
index 0000000..f877157
--- /dev/null
+++ b/templates/frontmatter-template.adoc.erb
@@ -0,0 +1,29 @@
+= <%= @opts[:title] %>
+<%= @opts[:author] %>
+:nofooter:
+:reproducible:
+:pagenums:
+
+// ===================================================================
+
+[colophon%notitle%nonfacing]
+= Colophon
+
+<%% if var["VOLUMEKIND"] == "PAPERBACK" %>
+image::colophon-paperback.pdf[page=2]
+<%% end %>
+
+<%% if var["VOLUMEKIND"] == "HARDCOVER" %>
+image::colophon-hardcover.pdf[page=2]
+<%% end %>
+
+<%% if var["VOLUMEKIND"] == "EPUB" %>
+<%%= File.read("colophoncontent-epub.adoc") %>
+<%% end %>
+
+// ===================================================================
+
+[dedication%notitle]
+= Dedication
+
+image::dedication.pdf[page=3]