File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22layout: default
33title: "Tech Briefs & News"
4- image: /assets/images/babcia.jpg
54---
65
76< style >
155154 overflow : hidden;
156155 }
157156 .news-thumb-img { width : 100% ; height : 100% ; object-fit : cover; display : block; }
158- .news-thumb-img .is-icon { width : 96px ; height : 96px ; object-fit : contain; }
157+ .news-thumb-img .is-icon {
158+ width : 96px ; height : 96px ;
159+ object-fit : cover;
160+ border-radius : 18px ;
161+ border : 1px solid rgba (0 , 210 , 255 , 0.25 );
162+ background : rgba (0 , 210 , 255 , 0.08 );
163+ }
159164 .news-thumb-fallback {
160165 font-size : 3.2rem ;
161166 width : 96px ; height : 96px ;
@@ -286,9 +291,9 @@ <h1>Tech Briefs & News</h1>
286291
287292 {% if thumb == blank %}
288293 {% if t.content contains '< img ' %}
289- {% assign thumb = t.content | split: '< img ' | second | split: 'src="' | second | split: '"' | first %}
294+ {% assign img_parts = t.content | split: '< img ' %}{% assign src_parts = img_parts[1] | split: 'src="' %}{% assign thumb = src_parts[1] | split: '"' | first %}
290295 {% elsif t.content contains '' | first %}
296+ {% assign md_parts = t.content | split: '![' %}{% assign md_parts2 = md_parts[1] | split: '](' %}{% assign thumb = md_parts2[1] | split: ')' | first %}
292297 {% endif %}
293298 {% endif %}
294299
You can’t perform that action at this time.
0 commit comments