Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Apply Markdownify filter on post.title for typographic bliss
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Jan 6, 2016
1 parent a48f214 commit 8a98eb0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions _includes/archive__item.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<span class="archive__item-time">{% if readtime <= 1 %}1{% else %}{{ readtime }}{% endif %} min read</span>
</div>
{% if post.categories contains 'mastering-paper' %}
<h1 class="archive__item-title">{{ post.title | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h1>
<h1 class="archive__item-title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h1>
{% else %}
<h1 class="archive__item-title">{{ post.title }}</h1>
<h1 class="archive__item-title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</h1>
{% endif %}
<p class="archive__item-excerpt">{{ post.excerpt }}</p>
<p class="archive__item-excerpt">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</p>
</div>

<div class="archive__item-thumb" {% if post.image.teaser %}style="background-image: url('{{ site.url }}/images/{{ post.image.teaser }}');"{% endif %}></div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/archive__tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<img src="{{ site.url }}/images/{% if post.image.teaser %}{{ post.image.teaser }}{% else %}{{ site.teaser }}{% endif %}" alt="{{ post.title }}">
</a>
{% if post.categories contains 'mastering-paper' %}
<h3 class="tile__title"><a href="{{ site.url }}{{ post.url }}">{{ post.title | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</a></h3>
<h3 class="tile__title"><a href="{{ site.url }}{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</a></h3>
{% else %}
<h3 class="tile__title"><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h3>
<h3 class="tile__title"><a href="{{ site.url }}{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h3>
{% endif %}
{% if post.work %}
<span class="tile__category">{{ post.work }}</span>
Expand Down
4 changes: 2 additions & 2 deletions _includes/featured.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ <h3 class="tile__header">{% if page.feature.headline %}{{ page.feature.headline
<a href="{{ site.url }}{{ post.url }}">
<img src="{{ site.url }}/images/{% if post.image.teaser %}{{ post.image.teaser }}{% else %}{{ site.teaser }}{% endif %}" alt="{{ post.title }}">
{% if post.categories contains 'mastering-paper' %}
<h3 class="tile__title">{{ post.title | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h3>
<h3 class="tile__title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h3>
{% else %}
<h3 class="tile__title">{{ post.title }}</h3>
<h3 class="tile__title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</h3>
{% endif %}
{% assign readtime = post.content | strip_html | number_of_words | divided_by:site.words_per_minute %}
<span class="tile__item-time">{% if readtime <= 1 %}1{% else %}{{ readtime }}{% endif %} min read</span>
Expand Down
4 changes: 2 additions & 2 deletions _includes/related.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ <h3 class="tile__header">You May Also Enjoy</h3>
<a href="{{ site.url }}{{ post.url }}">
<img src="{{ site.url }}/images/{% if post.image.teaser %}{{ post.image.teaser }}{% else %}{{ site.teaser }}{% endif %}" alt="{{ post.title }}">
{% if post.categories contains 'mastering-paper' %}
<h3 class="tile__title">{{ post.title | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h3>
<h3 class="tile__title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' | remove: 'Mastering Paper by FiftyThree: ' | remove: 'Mastering Paper by 53: ' | remove: ' with Paper by 53' }}</h3>
{% else %}
<h3 class="tile__title">{{ post.title }}</h3>
<h3 class="tile__title">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</h3>
{% endif %}
</a>
{% if post.categories %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta itemprop="description" content="{{ page.excerpt | strip_html }}">

<header class="container post__header">
<h1 class="post__title" itemprop="name headline">{{ page.title }}</h1>
<h1 class="post__title" itemprop="name headline">{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</h1>
{% include breadcrumbs.html %}
</header>

Expand Down

0 comments on commit 8a98eb0

Please sign in to comment.