Skip to content

Commit

Permalink
Merge pull request #17 from obujor/master
Browse files Browse the repository at this point in the history
Added favicon config and inclusion
  • Loading branch information
klugjo committed Nov 15, 2017
2 parents acd50f6 + f686b02 commit 5f83051
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -86,6 +86,16 @@ You can specify a default thumbnail for posts/pages on the post/page page (Detai
# Default post cover index page
default_cover_detail: "http://placehold.it/1300x500"

### Favicon

You can specify the favicon.

Example:
```
# Favicon
favicon: "/img/favicon.ico"
```

### Comments

The comments provider is specified in the theme's `_config.yml`. If you specify both a `disqus_shortname` and a `facebook.appid` there will be 2 sets of comment per post. So choose one.
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Expand Up @@ -12,6 +12,9 @@ default_cover_index: "http://placehold.it/450x450"
# Default post cover index page
default_cover_detail: "http://placehold.it/1300x500"

# Favicon
favicon: ""

# Comments. Choose one by filling up the information
comments:
# Disqus comments
Expand Down
6 changes: 6 additions & 0 deletions layout/_partial/head.ejs
Expand Up @@ -67,4 +67,10 @@
<!-- Google Analytics -->
<%- partial('google-analytics') %>

<!--Favicon-->
<% if (theme.favicon){ %>
<link rel="shortcut icon" href="<%= theme.favicon %>" type="image/x-icon">
<link rel="icon" href="<%= theme.favicon %>" type="image/x-icon">
<% } %>

</head>

0 comments on commit 5f83051

Please sign in to comment.