File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 6
6
- Fixed bug where using an image as a navbar title did not render in GitHub Project pages that did not have a custom domain
7
7
- Fixed issue where image thumbnails on the feed page were always forced into a square rather than maintaining a proper image aspect ratio
8
8
- Added support for Patreon in the social network links in the footer
9
+ - Fixed bug where special characters in the title led to broken share tags (#744 )
9
10
10
11
## v5.0.0 (2020-09-15)
11
12
Original file line number Diff line number Diff line change 4
4
5
5
{% capture title %}
6
6
{%- if page.share-title -%}
7
- {{ page.share-title }}
7
+ {{ page.share-title | strip_html | xml_escape }}
8
8
{%- elsif page.title -%}
9
- {{ page.title }}
9
+ {{ page.title | strip_html | xml_escape }}
10
10
{%- else -%}
11
- {{ site.title }}
11
+ {{ site.title | strip_html | xml_escape }}
12
12
{%- endif -%}
13
13
{% endcapture %}
14
14
15
15
{% capture description %}
16
16
{%- if page.share-description -%}
17
- {{ page.share-description }}
17
+ {{ page.share-description | strip_html | xml_escape }}
18
18
{%- elsif page.subtitle -%}
19
- {{ page.subtitle }}
19
+ {{ page.subtitle | strip_html | xml_escape }}
20
20
{%- else -%}
21
21
{%- assign excerpt_length = site.excerpt_length | default: 50 -%}
22
22
{{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }}
You can’t perform that action at this time.
0 commit comments