Add custom favicon if needed (#386)
This commit is contained in:
parent
c37abc44bc
commit
07a2e0577e
|
|
@ -16,7 +16,8 @@ footer_text: >
|
||||||
keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your own keywords or leave empty
|
keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your own keywords or leave empty
|
||||||
|
|
||||||
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
|
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
|
||||||
icon: 🔥 # the emoji used as the favicon
|
icon: 🔥 # the emoji used as the favicon (alternatively, provide image name in /assets/img/)
|
||||||
|
|
||||||
url: https://alshedivat.github.io # the base hostname & protocol for your site
|
url: https://alshedivat.github.io # the base hostname & protocol for your site
|
||||||
baseurl: /al-folio # the subpath of your site, e.g. /blog/
|
baseurl: /al-folio # the subpath of your site, e.g. /blog/
|
||||||
last_updated: false # set to true if you want to display last updated in the footer
|
last_updated: false # set to true if you want to display last updated in the footer
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<!-- Metadata, OpenGraph and Schema.org -->
|
<!-- Metadata, OpenGraph and Schema.org -->
|
||||||
{% include metadata.html %}
|
{% include metadata.html %}
|
||||||
|
|
||||||
|
|
@ -15,9 +14,11 @@
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/{{ site.highlight_theme_light | append: '.css' }}" media="none" id="highlight_theme_light" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/{{ site.highlight_theme_light | append: '.css' }}" media="none" id="highlight_theme_light" />
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
{% if site.icon != empty -%}
|
{% if site.icon.size == 1 %}
|
||||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>">
|
<link rel="shortcut icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>">
|
||||||
{%- endif %}
|
{% elsif site.icon != blank %}
|
||||||
|
<link rel="shortcut icon" href="{{ site.icon | prepent: '/assets/img/' | relative_url}}"/>
|
||||||
|
{% endif %}
|
||||||
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue