Fixed redirect post access from blog archive (#1994)
Fixes #1831 Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
199718610e
commit
f9b8d45081
|
|
@ -16,7 +16,13 @@ layout: default
|
|||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% if post.redirect == blank %}
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% elsif post.redirect contains '://' %}
|
||||
<a class="post-link" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
|
||||
{% else %}
|
||||
<a class="post-link" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,13 @@ layout: default
|
|||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% if post.redirect == blank %}
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% elsif post.redirect contains '://' %}
|
||||
<a class="post-link" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
|
||||
{% else %}
|
||||
<a class="post-link" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,13 @@ layout: default
|
|||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% if post.redirect == blank %}
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% elsif post.redirect contains '://' %}
|
||||
<a class="post-link" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
|
||||
{% else %}
|
||||
<a class="post-link" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue