Merge pull request #4606 from yous/escape-template
Merge pull request 4606
This commit is contained in:
		
						commit
						0618ae8a2e
					
				|  | @ -2,12 +2,12 @@ | ||||||
| 
 | 
 | ||||||
|   <div class="wrapper"> |   <div class="wrapper"> | ||||||
| 
 | 
 | ||||||
|     <h2 class="footer-heading">{{ site.title }}</h2> |     <h2 class="footer-heading">{{ site.title | escape }}</h2> | ||||||
| 
 | 
 | ||||||
|     <div class="footer-col-wrapper"> |     <div class="footer-col-wrapper"> | ||||||
|       <div class="footer-col footer-col-1"> |       <div class="footer-col footer-col-1"> | ||||||
|         <ul class="contact-list"> |         <ul class="contact-list"> | ||||||
|           <li>{{ site.title }}</li> |           <li>{{ site.title | escape }}</li> | ||||||
|           <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li> |           <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li> | ||||||
|         </ul> |         </ul> | ||||||
|       </div> |       </div> | ||||||
|  | @ -29,7 +29,7 @@ | ||||||
|       </div> |       </div> | ||||||
| 
 | 
 | ||||||
|       <div class="footer-col footer-col-3"> |       <div class="footer-col footer-col-3"> | ||||||
|         <p>{{ site.description }}</p> |         <p>{{ site.description | escape }}</p> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,9 +4,9 @@ | ||||||
|   <meta name="viewport" content="width=device-width, initial-scale=1"> |   <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||||
| 
 | 
 | ||||||
|   <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> |   <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> | ||||||
|   <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |   <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | escape }}{% endif %}"> | ||||||
| 
 | 
 | ||||||
|   <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> |   <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> | ||||||
|   <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> |   <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> | ||||||
|   <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> |   <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> | ||||||
| </head> | </head> | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
|   <div class="wrapper"> |   <div class="wrapper"> | ||||||
| 
 | 
 | ||||||
|     <a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a> |     <a class="site-title" href="{{ site.baseurl }}/">{{ site.title | escape }}</a> | ||||||
| 
 | 
 | ||||||
|     <nav class="site-nav"> |     <nav class="site-nav"> | ||||||
|       <a href="#" class="menu-icon"> |       <a href="#" class="menu-icon"> | ||||||
|  | @ -16,7 +16,7 @@ | ||||||
|       <div class="trigger"> |       <div class="trigger"> | ||||||
|         {% for my_page in site.pages %} |         {% for my_page in site.pages %} | ||||||
|           {% if my_page.title %} |           {% if my_page.title %} | ||||||
|           <a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a> |           <a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title | escape }}</a> | ||||||
|           {% endif %} |           {% endif %} | ||||||
|         {% endfor %} |         {% endfor %} | ||||||
|       </div> |       </div> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ layout: default | ||||||
| <article class="post"> | <article class="post"> | ||||||
| 
 | 
 | ||||||
|   <header class="post-header"> |   <header class="post-header"> | ||||||
|     <h1 class="post-title">{{ page.title }}</h1> |     <h1 class="post-title">{{ page.title | escape }}</h1> | ||||||
|   </header> |   </header> | ||||||
| 
 | 
 | ||||||
|   <div class="post-content"> |   <div class="post-content"> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ layout: default | ||||||
| <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> | <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> | ||||||
| 
 | 
 | ||||||
|   <header class="post-header"> |   <header class="post-header"> | ||||||
|     <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1> |     <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1> | ||||||
|     <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p> |     <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p> | ||||||
|   </header> |   </header> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -12,7 +12,7 @@ layout: default | ||||||
|         <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> |         <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> | ||||||
| 
 | 
 | ||||||
|         <h2> |         <h2> | ||||||
|           <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> |           <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title | escape }}</a> | ||||||
|         </h2> |         </h2> | ||||||
|       </li> |       </li> | ||||||
|     {% endfor %} |     {% endfor %} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue