Skip to content

Commit

Permalink
Fix some broken related article links
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmanc committed Feb 14, 2019
1 parent 43984d3 commit 2ace4e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ <h3 id="related-posts">Related Posts</h3>
{% endfor %}
{% if sameTagCount > 0 %}
<div class="related-post">
<a href="{{ post.url }}">
<a href="{{ post.url | relative_url }}">
<strong>{{ post.title }}</strong><br>
{{ post.date | date_to_string }}—{{ post.author }}
</a>
{% assign sortedTags = post.tags | sort %}
<ul>
{% for tag in sortedTags %}
<li><a href="{{ site.github.url }}/tags#{{ tag | slugify }}" class="related-post-tag">#{{ tag }}</a></li>
<li><a href="{{ tag | slugify | prepend: '/tags#' | relative_url }}" class="related-post-tag">#{{ tag }}</a></li>
{% endfor %}
</ul>
<p>{{ post.excerpt | truncatewords: 50 }}</p>
<p><a class="btn btn-sm btn-primary" href="{{ site.github.url }}{{ post.url }}" role="button">Read more… <i class="fa fa-arrow-circle-right"></i></a>
<p><a class="btn btn-sm btn-primary" href="{{ post.url | relative_url }}" role="button">Read more… <i class="fa fa-arrow-circle-right"></i></a>
</p>
</div>
{% endif %}
Expand Down

0 comments on commit 2ace4e6

Please sign in to comment.