Skip to content

Commit fb57091

Browse files
authored
Update newsy.html
1 parent 69f4b6d commit fb57091

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎newsy.html‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: default
33
title: "Tech Briefs & News"
4-
image: /assets/images/babcia.jpg
54
---
65

76
<style>
@@ -155,7 +154,13 @@
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 '![' %}
291-
{% assign thumb = t.content | split: '![' | second | split: '](' | second | split: ')' | 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

0 commit comments

Comments
 (0)