Permalink
Browse files

Fix lang attribute for post with external URL

  • Loading branch information...
yous committed Apr 9, 2018
1 parent 05a2a0e commit 667f218c7ce4f145db68fd4d9cdfb8bdc0cb570f
Showing with 8 additions and 6 deletions.
  1. +4 −0 CHANGELOG.md
  2. +2 −3 _layouts/archive.html
  3. +2 −3 _layouts/category_archives.html
@@ -1,5 +1,9 @@
# ChangeLog
## HEAD
- Fix lang attribute for post with external URL
## 1.6.0 (2018-04-09)
- Appropriately size h1s in the post body (#19)
@@ -26,11 +26,10 @@ <h1 class="page-heading">Blog Archive</h1>
</span>
<h2>
{% capture link_lang %}{% if lang != empty %} lang="{{ lang }}"{% endif %}{% endcapture %}
{% if post.external-url %}
<a class="post-link" href="{{ post.external-url }}"{{ link_lang }}>{{ post.title | escape }} &rarr;</a>
<a class="post-link" href="{{ post.external-url }}">{{ post.title | escape }} &rarr;</a>
{% else %}
<a class="post-link" href="{{ post.url | relative_url }}"{{ link_lang }}>{{ post.title | escape }}</a>
<a class="post-link" href="{{ post.url | relative_url }}"{% if lang != empty %} lang="{{ lang }}"{% endif %}>{{ post.title | escape }}</a>
{% endif %}
</h2>
</li>
@@ -24,11 +24,10 @@ <h1 class="page-heading">Archive of {{ page.type }} '{{ page.title | escape }}'<
</span>
<h2>
{% capture link_lang %}{% if lang != empty %} lang="{{ lang }}"{% endif %}{% endcapture %}
{% if post.external-url %}
<a class="post-link" href="{{ post.external-url }}"{{ link_lang }}>{{ post.title | escape }} &rarr;</a>
<a class="post-link" href="{{ post.external-url }}">{{ post.title | escape }} &rarr;</a>
{% else %}
<a class="post-link" href="{{ post.url | relative_url }}"{{ link_lang }}>{{ post.title | escape }}</a>
<a class="post-link" href="{{ post.url | relative_url }}"{% if lang != empty %} lang="{{ lang }}"{% endif %}>{{ post.title | escape }}</a>
{% endif %}
</h2>
</li>

0 comments on commit 667f218

Please sign in to comment.