|
1 | 1 | <head> |
2 | 2 | <meta charset="utf-8"> |
3 | 3 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
4 | | - <title>{% if include.title %}{{ include.title }} – {% elsif page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title> |
| 4 | + <title>{% if include.title %}{{ include.title | xml_escape }} – {% elsif page.title %}{{ page.title | xml_escape }} – {% endif %}{{ site.title | xml_escape }}</title> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | | - <meta name="description" content="{% if page.summary %}{{ page.summary }}{% else %}{{ site.description }}{% endif %}"> |
7 | | - <meta name="author" content="{{ site.author }}"> |
8 | | - {% if page.categories %}<meta name="keywords" content="{{ page.categories | join: ', ' }}">{% endif %} |
| 6 | + <meta name="description" content="{% if page.summary %}{{ page.summary | xml_escape }}{% else %}{{ site.description | xml_escape }}{% endif %}"> |
| 7 | + <meta name="author" content="{{ site.author | xml_escape }}"> |
| 8 | + {% if page.categories %}<meta name="keywords" content="{{ page.categories | join: ', ' | xml_escape }}">{% endif %} |
9 | 9 | <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> |
10 | 10 |
|
11 | 11 | <!-- Custom CSS --> |
|
23 | 23 | <!-- From: https://github.com/mmistakes/hpstr-jekyll-theme/blob/master/_includes/head.html --> |
24 | 24 | <meta property="og:locale" content="en_US"> |
25 | 25 | <meta property="og:type" content="article"> |
26 | | - <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> |
27 | | - <meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 26 | + <meta property="og:title" content="{% if page.title %}{{ page.title | xml_escape }}{% else %}{{ site.title | xml_escape }}{% endif %}"> |
| 27 | + <meta property="og:description" content="{% if page.description %}{{ page.description | xml_escape }}{% else %}{{ site.description | xml_escape }}{% endif %}"> |
28 | 28 | <meta property="og:url" content="{{ site.url }}{{ page.url }}"> |
29 | | - <meta property="og:site_name" content="{{ site.title }}"> |
| 29 | + <meta property="og:site_name" content="{{ site.title | xml_escape }}"> |
30 | 30 |
|
31 | 31 | </head> |
0 commit comments