Skip to content

Commit d3988a9

Browse files
authored
Move charset information before any content
This fixes the rendering of non-ASCII characters in the OpenGraph embeds. For example, 🎉🎉🎉 would render as 🎉🎉🎉.
1 parent 2174658 commit d3988a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_includes/headertop.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<meta charset="UTF-8"/>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6+
47
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
58
{% if page.title %}
69
<meta property="og:title" content="{{ page.title }}"/>
@@ -18,8 +21,7 @@
1821
<meta property="og:url" content="{{ site.url }}{{ page.url }}"/>
1922
{% endif %}
2023
<meta property="og:image" content="{{ site.url }}/resources/img/scala-spiral-3d-2-toned-down.png"/>
21-
22-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
24+
2325
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2426

2527
<link rel="icon" type="image/png" href="{{ site.baseurl }}/resources/favicon.ico">

0 commit comments

Comments
 (0)