Current section

Files

Jump to
ex_doc lib ex_doc formatter epub templates title_template.eex
Raw

lib/ex_doc/formatter/epub/templates/title_template.eex

<%= head_template(config, %{title: "Cover"}) %>
<div class="title-container">
<%= if cover = config.cover do %>
<div><img src="assets/cover<%= Path.extname(cover) %>"/></div>
<% else %>
<h1><%= config.project %></h1>
<h2>v<%= config.version %></h2>
<%= if logo = config.logo do %>
<div><img src="assets/logo<%= Path.extname(logo) %>" alt="Logo"/></div>
<% end %>
<% end %>
</div>
<%# Extra content specified by the user (e.g. custom Javascipt) %>
<%= config.before_closing_body_tag.(:epub) %>
</body>
</html>