Skip to content

Commit

Permalink
Slightly tidy up some of the code in the <head> for tint colors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Apr 5, 2024
1 parent e430f2a commit 820386e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,22 @@
{% if page.canonical_url %}
<link rel="canonical" href="{{ page.canonical_url | absolute_url }}">
{% else %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="canonical" href="{{ page.url | replace: 'index.html', '' | absolute_url }}">
{% endif %}

<meta name="page-source-path" content="{{ page.path }}">

{% if page.colors.css_light %}
<link rel="shortcut icon" type="image/png" href="/favicons/{{ page.colors.css_light | replace: "#", "" }}.png">
<link rel="shortcut icon" type="image/png" href="/favicons/{{ page.colors.css_light | replace: "#", "" }}.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicons/{{ page.colors.css_light | replace: "#", "" }}.ico">
<meta name="theme-color" content="{{ page.colors.css_light }}">
{% else %}
<link rel="shortcut icon" type="image/png" href="/favicon.png" sizes="32x32">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" sizes="32x32">
<meta name="theme-color" content="#d01c11">
{% endif %}

{% if page.theme and page.theme.touch_icon %}
<link rel="apple-touch-icon" href="/theme/apple-touch-icon_{{ page.theme.touch_icon }}.png">
{% else %}
<link rel="apple-touch-icon" href="/theme/apple-touch-icon.png">
{% endif %}

{% include analytics.html %}
{% include socialgraph.html %}
Expand Down

0 comments on commit 820386e

Please sign in to comment.