Skip to content

Commit aa35c78

Browse files
authored
Enhance image styling and source extraction in index.html
Updated image styles and improved image source extraction logic.
1 parent fb57091 commit aa35c78

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎index.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: Home
4-
image: /assets/images/babcia.jpg
54
---
65
<style>
76
.dashboard {
@@ -177,7 +176,13 @@
177176
overflow: hidden;
178177
}
179178
.news-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
180-
.news-thumb-img.is-icon { width: 96px; height: 96px; object-fit: contain; }
179+
.news-thumb-img.is-icon {
180+
width: 96px; height: 96px;
181+
object-fit: cover;
182+
border-radius: 18px;
183+
border: 1px solid rgba(0, 210, 255, 0.25);
184+
background: rgba(0, 210, 255, 0.08);
185+
}
181186
.news-thumb-fallback {
182187
font-size: 3.2rem;
183188
width: 96px; height: 96px;
@@ -399,9 +404,9 @@ <h1 class="hero-title">DEVLAB<br>STUDY<span>_</span></h1>
399404

400405
{% if thumb == blank %}
401406
{% if t.content contains '<img' %}
402-
{% assign thumb = t.content | split: '<img' | second | split: 'src="' | second | split: '"' | first %}
407+
{% assign img_parts = t.content | split: '<img' %}{% assign src_parts = img_parts[1] | split: 'src="' %}{% assign thumb = src_parts[1] | split: '"' | first %}
403408
{% elsif t.content contains '![' %}
404-
{% assign thumb = t.content | split: '![' | second | split: '](' | second | split: ')' | first %}
409+
{% assign md_parts = t.content | split: '![' %}{% assign md_parts2 = md_parts[1] | split: '](' %}{% assign thumb = md_parts2[1] | split: ')' | first %}
405410
{% endif %}
406411
{% endif %}
407412

0 commit comments

Comments
 (0)