Add support for custom favicon
This commit is contained in:
parent
6205b00a48
commit
9a03c1512f
|
@ -60,6 +60,7 @@ defaults:
|
||||||
encoding: utf-8 # Make sure the encoding is right
|
encoding: utf-8 # Make sure the encoding is right
|
||||||
title: "Garth" # Site name or title
|
title: "Garth" # Site name or title
|
||||||
logo: "/assets/logo.svg" # Site logo
|
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
|
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
|
url: "https://garth.darn.es" # Site url
|
||||||
baseurl: ""
|
baseurl: ""
|
||||||
|
|
|
@ -9,8 +9,12 @@
|
||||||
<title>{{ page.title }} - {{ site.title }}</title>
|
<title>{{ page.title }} - {{ site.title }}</title>
|
||||||
{% endif %}
|
{% 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 }}">
|
<link rel="shortcut icon" href="{{ site.logo }}">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user