Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
add favicon to root index too
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton committed Oct 16, 2018
1 parent 91edae3 commit 85fc6be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
gtag('config', '<%= htmlWebpackPlugin.options.GA_TRACKING_ID %>', {send_page_view: false});
</script>

<link rel="icon" href="<%= htmlWebpackPlugin.options.baseURL %><%= htmlWebpackPlugin.options.rootPath %>favicon.ico" />

<% if (htmlWebpackPlugin.options.deploy) { %>
<link rel="canonical" href="<%= htmlWebpackPlugin.options.baseURL %><%= htmlWebpackPlugin.options.rootPath %>" />
<% } else { %>
<link rel="icon" href="<%= htmlWebpackPlugin.options.baseURL %><%= htmlWebpackPlugin.options.rootPath %>favicon.ico" />
<link rel="canonical" href="<%= htmlWebpackPlugin.options.baseURL %><%= htmlWebpackPlugin.options.rootPath %>{{id}}" />
<% } %>

Expand Down

0 comments on commit 85fc6be

Please sign in to comment.