From ee7aa9c84de02a5eeea37d1ccbd425248e8793a0 Mon Sep 17 00:00:00 2001 From: Gustavo Villa Date: Sun, 10 Sep 2017 02:22:17 -0300 Subject: [PATCH] Add favicon when logo option is present --- lib/ex_doc/formatter/html/templates/head_template.eex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ex_doc/formatter/html/templates/head_template.eex b/lib/ex_doc/formatter/html/templates/head_template.eex index 4b27f5d6d..e526d64a2 100644 --- a/lib/ex_doc/formatter/html/templates/head_template.eex +++ b/lib/ex_doc/formatter/html/templates/head_template.eex @@ -10,6 +10,14 @@ <%= if config.canonical do %> <% end %> + <%= if config.logo do %> + <%= if Path.extname(config.logo) == ".png" do %> + + <% end %> + <%= if Path.extname(config.logo) == ".jpg" do %> + + <% end %> + <% end %> <%= config.before_closing_head_tag.(:html) %>