Skip to content

Commit

Permalink
check spelling only in the article
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 9, 2016
1 parent 867b2ec commit cbd1d9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ task spell: [:build] do
html.search('//header').remove
html.search('//footer').remove
tmp = Tempfile.new(['yegor256-', '.txt'])
text = html.xpath('//section//p|//section//h2|//section//h3').to_a.join(' ')
text = html.xpath('//article//p|//article//h2|//article//h3').to_a.join(' ')
.gsub(/[\n\r\t ]+/, ' ')
.gsub(/&[a-z]+;/, ' ')
.gsub(/&#[0-9]+;/, ' ')
Expand Down
10 changes: 8 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ <h1 itemprop="name headline mainEntityOfPage">{{ page.title }}</h1>
{{ content }}
</article>
</main>
{% if page.youtube %}
</div>

{% if page.youtube %}
<div class="wrapper">
{{ page.youtube | youtube }}
{% endif %}
</div>
{% endif %}

<div class="wrapper">
{% if page.related %}
<div class="unprintable">
<hr/>
Expand Down

0 comments on commit cbd1d9b

Please sign in to comment.