Skip to content

Commit

Permalink
HTML escape author in posts (jekyll#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawley authored and DirtyF committed Oct 29, 2018
1 parent 3e78c58 commit 1853327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
{{ page.date | date: date_format }}
</time>
{%- if page.author -%}
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
{%- endif -%}</p>
</header>

Expand Down

0 comments on commit 1853327

Please sign in to comment.