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>
|
<tr>
|
||||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,13 @@ layout: default
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,13 @@ layout: default
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue