Skip to content

Commit

Permalink
Add support for custom favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Thayer Luscian committed Jan 18, 2018
1 parent 6205b00 commit 9a03c15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Expand Up @@ -60,6 +60,7 @@ defaults:
encoding: utf-8 # Make sure the encoding is right
title: "Garth" # Site name or title
logo: "/assets/logo.svg" # Site logo
# favicon: "/favicon.ico" # Uncomment to add custom favicon, or leave as is to use site logo
description: "A stupidly simple theme for Jekyll, using the official Jekyll theme implementation" # Site description and default description
url: "https://garth.darn.es" # Site url
baseurl: ""
Expand Down
6 changes: 5 additions & 1 deletion _layouts/default.html
Expand Up @@ -9,8 +9,12 @@
<title>{{ page.title }} - {{ site.title }}</title>
{% endif %}

<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
{% if site.favicon %}
<link rel="shortcut icon" href="{{ site.favicon }}">
{% else %}
<link rel="shortcut icon" href="{{ site.logo }}">
{% endif %}
</head>
<body>

Expand Down

0 comments on commit 9a03c15

Please sign in to comment.