File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 8
8
{% else %}
9
9
{% assign title = page.title %}
10
10
{% endif %}
11
- < title > {{ site.title }}{{ custom }}{% if title %} :: {{ title }}{% endif %}</ title >
12
- {% if page.excerpt %}< meta name ="description " content ="{{ title | strip_html }} "> {% endif %}
11
+ < title > {{ site.title | xml_escape }}{{ custom | xml_escape }}{% if title %} :: {{ title | xml_escape }}{% endif %}</ title >
12
+ {% if page.excerpt %}< meta name ="description " content ="{{ title | strip_html | xml_escape }} "> {% endif %}
13
13
< meta name ="keywords " content ="{{ page.tags | join: ', ' }} ">
14
14
{% if page.author %}
15
15
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
24
24
{% assign posts=site.posts |where:"name", page.name %}
25
25
{% for hrefpost in posts %}< link rel ="alternate " hreflang ="{{ hrefpost.lang }} " href ="{{ site.url }}{{ hrefpost.permalink }} " /> {% endfor %}
26
26
{% if page.canonical != null %}< link rel ="canonical " href ="{{ page.canonical }} "> {% else %}< link rel ="canonical " href ="{{ site.url }}{{ page.url }} "> {% endif %}
27
- < link href ="{{ site.url }}/{{ page.lang }}/feed.xml " type ="application/atom+xml " rel ="alternate " title ="{{ site.title }} Blog XML Feed ">
28
- < link href ="{{ site.url }}/{{ page.lang }}/rss.xml " type ="application/rss+xml " rel ="alternate " title ="{{ site.title }} Blog RSS Feed ">
29
- < link href ="{{ site.url }}/{{ page.lang }}/meetingrss.xml " type ="application/rss+xml " rel ="alternate " title ="{{ site.title }} Meeting RSS Feed ">
27
+ < link href ="{{ site.url }}/{{ page.lang }}/feed.xml " type ="application/atom+xml " rel ="alternate " title ="{{ site.title | xml_escape }} Blog XML Feed ">
28
+ < link href ="{{ site.url }}/{{ page.lang }}/rss.xml " type ="application/rss+xml " rel ="alternate " title ="{{ site.title | xml_escape }} Blog RSS Feed ">
29
+ < link href ="{{ site.url }}/{{ page.lang }}/meetingrss.xml " type ="application/rss+xml " rel ="alternate " title ="{{ site.title | xml_escape }} Meeting RSS Feed ">
30
30
31
31
<!-- http://t.co/dKP3o1e -->
32
32
< meta name ="HandheldFriendly " content ="True ">
Original file line number Diff line number Diff line change 1
1
<!-- Twitter Cards -->
2
- < meta name ="twitter:title " content ="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} ">
3
- {% if page.excerpt %}< meta name ="twitter:description " content ="{{ page.title | strip_html }} "> {% endif %}
2
+ < meta name ="twitter:title " content ="{% if page.title %}{{ page.title | xml_escape }}{% else %}{{ site.title | xml_escape }}{% endif %} ">
3
+ {% if page.excerpt %}< meta name ="twitter:description " content ="{{ page.title | strip_html | xml_escape }} "> {% endif %}
4
4
{% if site.owner.twitter %}< meta name ="twitter:site " content ="@{{ site.owner.twitter }} "> {% endif %}
5
5
{% if author.twitter %}< meta name ="twitter:creator " content ="@{{ author.twitter }} "> {% endif %}
6
6
{% if page.image.feature %}
13
13
<!-- Open Graph -->
14
14
< meta property ="og:locale " content ="{{ page.lang}} ">
15
15
< meta property ="og:type " content ="article ">
16
- < meta property ="og:title " content ="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} ">
17
- {% if page.excerpt %}< meta property ="og:description " content ="{{ page.title | strip_html }} "> {% endif %}
16
+ < meta property ="og:title " content ="{% if page.title %}{{ page.title | xml_escape }}{% else %}{{ site.title | xml_escape }}{% endif %} ">
17
+ {% if page.excerpt %}< meta property ="og:description " content ="{{ page.title | strip_html | xml_escape }} "> {% endif %}
18
18
< meta property ="og:url " content ="{{ page.url | replace:'index.html','' | prepend: site.url }} ">
19
- < meta property ="og:site_name " content ="{{ site.title }} ">
19
+ < meta property ="og:site_name " content ="{{ site.title | xml_escape }} ">
20
20
{% if page.image.feature %}
21
21
< meta property ="og:image " content ="{{ site.url }}/assets/images/{{ page.image.feature }} ">
22
22
{% else %}
Original file line number Diff line number Diff line change 30
30
</ div >
31
31
</ div >
32
32
< article class ="page ">
33
- < h1 > {{ custom_title }}</ h1 >
33
+ < h1 > {{ custom_title | xml_escape }}</ h1 >
34
34
< div class ="article-wrap ">
35
35
{% if page.btcversion != "index" %}
36
36
{% assign groups = site.doc | where:"btcversion", page.btcversion | group_by:"btcgroup" | sort: "name" %}
Original file line number Diff line number Diff line change 18
18
{% else %}
19
19
"/assets/images/{{ page.image.feature }}"
20
20
{% endif %}
21
- alt="{% if page.image.alt %}{{ page.image.alt }}{% else %}{{ page.title }}{% endif %} feature image ">
21
+ alt="{% if page.image.alt %}{{ page.image.alt }}{% else %}{{ page.title | xml_escape }}{% endif %} feature image ">
22
22
{% if page.image.byline %}
23
23
< span class ="image-credit "> {{ page.image.byline }}</ span >
24
24
{% endif %}
33
33
{% include author-bio.html %}
34
34
</ div >
35
35
< article class ="page ">
36
- < h1 > {{ page.title }}</ h1 >
36
+ < h1 > {{ page.title | xml_escape }}</ h1 >
37
37
< div class ="article-wrap ">
38
38
<!-- { % include istranslated.html % } -->
39
39
{{ content }}
Original file line number Diff line number Diff line change 18
18
{% else %}
19
19
"/assets/images/{{ page.image.feature }}"
20
20
{% endif %}
21
- alt="{% if page.image.alt %}{{ page.image.alt }}{% else %}{{ page.title }}{% endif %} feature image ">
21
+ alt="{% if page.image.alt %}{{ page.image.alt }}{% else %}{{ page.title | xml_escape }}{% endif %} feature image ">
22
22
{% if page.image.byline %}
23
23
< span class ="image-credit "> {{ page.image.byline }}</ span >
24
24
{% endif %}
33
33
{% include author-bio.html %}
34
34
</ div >
35
35
< div id ="index ">
36
- < h1 > {{ page.title }}</ h1 >
36
+ < h1 > {{ page.title | xml_escape }}</ h1 >
37
37
{% capture written_year %}'None'{% endcapture %}
38
38
{% assign english_posts=site.posts | where:"lang", 'en' | where:"type", 'posts' %}
39
39
{% assign translated_posts=site.posts | where:"lang", page.lang | where:"type", 'posts' %}
@@ -49,9 +49,9 @@ <h3 class="year">{{ year }}</h3>
49
49
{% endif %}
50
50
< article >
51
51
{% if post.link %}
52
- < h2 class ="link-post "> < a href ="{{ post.url }} " title ="{{ post.title }} "> {{ post.title }}</ a > < a href ="{{ post.link }} " target ="_blank " title ="{{ post.title }} "> < i class ="fa fa-link "> </ i > </ a > </ h2 >
52
+ < h2 class ="link-post "> < a href ="{{ post.url }} " title ="{{ post.title | xml_escape }} "> {{ post.title | xml_escape }}</ a > < a href ="{{ post.link }} " target ="_blank " title ="{{ post.title | xml_escape }} "> < i class ="fa fa-link "> </ i > </ a > </ h2 >
53
53
{% else %}
54
- < h2 > < a href ="{{ post.url }} " title ="{{ post.title }} "> {{ post.title }}</ a > </ h2 >
54
+ < h2 > < a href ="{{ post.url }} " title ="{{ post.title | xml_escape }} "> {{ post.title }}</ a > </ h2 >
55
55
< p > {{ post.excerpt | markdownify | strip_html | truncate: 160 }}</ p >
56
56
{% endif %}
57
57
</ article >
You can’t perform that action at this time.
0 commit comments