diff --git a/lib/ex_doc/formatter/epub/templates/content_template.eex b/lib/ex_doc/formatter/epub/templates/content_template.eex index ef078eec6..de22444f2 100644 --- a/lib/ex_doc/formatter/epub/templates/content_template.eex +++ b/lib/ex_doc/formatter/epub/templates/content_template.eex @@ -17,40 +17,30 @@ - <%= for {_title, extras} <- config.extras do %> - <%= for extra <- extras do %> - - <% end %> + <%= for {_title, extras} <- config.extras, extra <- extras do %> + <% end %> - <%= for filter <- [:modules, :tasks] do %> - <%= for node <- nodes[filter] do %> - - <% end %> + <%= for filter <- [:modules, :tasks], node <- nodes[filter] do %> + <% end %> <%= for static_file <- static_files do %> <% end %> <%= if config.cover do %> - <%= if Path.extname(config.cover) == ".png" do %> - - <% end %> - <%= if Path.extname(config.cover) == ".jpg" do %> - - <% end %> + + <% end %> + <%= if config.logo do %> + - <%= for {_title, extras} <- config.extras do %> - <%= for extra <- extras do %> - - <% end %> - <% end %> - <%= for filter <- [:modules, :tasks] do %> - <%= for node <- nodes[filter] do %> - - <% end %> + <%= for {_title, extras} <- config.extras, extra <- extras do %> + + <% end %> + <%= for filter <- [:modules, :tasks], node <- nodes[filter] do %> + <% end %>