File tree 2 files changed +17
-10
lines changed
2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 14
14
< tr >
15
15
< th scope ="row "> {{ item.date | date: "%b %-d, %Y" }}</ th >
16
16
< td >
17
- < a class ="news-title " href ="{{ item.url | relative_url }} "> {{ item.title }}</ a >
17
+ {% if item.redirect == blank %}
18
+ < a class ="news-title " href ="{{ item.url | relative_url }} "> {{ item.title }}</ a >
19
+ {% elsif item.redirect contains '://' %}
20
+ < a class ="news-title " href ="{{ item.redirect }} " target ="_blank "> {{ item.title }}</ a >
21
+ < svg width ="2rem " height ="2rem " viewBox ="0 0 40 40 " xmlns ="http://www.w3.org/2000/svg ">
22
+ < 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 >
23
+ </ svg >
24
+ {% else %}
25
+ < a class ="news-title " href ="{{ item.redirect | relative_url }} "> {{ item.title }}</ a >
26
+ {% endif %}
18
27
</ td >
19
28
</ tr >
20
29
{%- endfor %}
Original file line number Diff line number Diff line change @@ -59,16 +59,14 @@ <h2>{{ site.blog_description }}</h2>
59
59
{%- endif -%}
60
60
< h3 >
61
61
{% if post.redirect == blank %}
62
- < a class ="post-title " href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
62
+ < a class ="post-title " href ="{{ post.url | relative_url }} "> {{ post.title }}</ a >
63
+ {% elsif post.redirect contains '://' %}
64
+ < a class ="post-title " href ="{{ post.redirect }} " target ="_blank "> {{ post.title }}</ a >
65
+ < svg width ="2rem " height ="2rem " viewBox ="0 0 40 40 " xmlns ="http://www.w3.org/2000/svg ">
66
+ < 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 >
67
+ </ svg >
63
68
{% else %}
64
- {% if post.redirect contains '://' %}
65
- < a class ="post-title " href ="{{ post.redirect }} " target ="_blank "> {{ post.title }}</ a >
66
- < svg width ="2rem " height ="2rem " viewBox ="0 0 40 40 " xmlns ="http://www.w3.org/2000/svg ">
67
- < 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 >
68
- </ svg >
69
- {% else %}
70
- < a class ="post-title " href ="{{ post.redirect | relative_url }} "> {{ post.title }}</ a >
71
- {% endif %}
69
+ < a class ="post-title " href ="{{ post.redirect | relative_url }} "> {{ post.title }}</ a >
72
70
{% endif %}
73
71
</ h3 >
74
72
< p > {{ post.description }}</ p >
You can’t perform that action at this time.
0 commit comments