File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 13
13
{% endunless %}
14
14
15
15
<li class =" my-2" >
16
- <a class =" text-pink-700 underline font-semibold hover:text-pink-800" href =" {{ site .baseurl }}{{ post .url }}" >{{ post .title }}</a >
16
+ {% if post .redirect == blank %}
17
+ <a class =" text-pink-700 underline font-semibold hover:text-pink-800" href =" {{ post .url | relative_url }}" >{{ post .title }}</a >
18
+ {% elsif post .redirect contains '://' %}
19
+ <a class =" text-pink-700 underline font-semibold hover:text-pink-800" href =" {{ post .redirect }}" target =" _blank" >{{ post .title }}</a >
20
+ <svg width =" 1rem" height =" 1rem" viewBox =" 0 0 20 20" xmlns =" http://www.w3.org/2000/svg" >
21
+ <path d =" M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class =" icon_svg-stroke" stroke =" #999" stroke-width =" 1.5" fill =" none" fill-rule =" evenodd" stroke-linecap =" round" stroke-linejoin =" round" ></path >
22
+ </svg >
23
+ {% else %}
24
+ <a class =" text-pink-700 underline font-semibold hover:text-pink-800" href =" {{ post .redirect | relative_url }}" >{{ post .title }}</a >
25
+ {% endif %}
17
26
</li >
18
27
{% endfor %}
19
28
{% if site .newsletter .enabled and site .footer_fixed %}
You can’t perform that action at this time.
0 commit comments