Skip to content

Commit 4571e58

Browse files
committed
blog page updates
1 parent 49e49b0 commit 4571e58

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

assets/css/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,13 @@ select {
15551555
-webkit-line-clamp: 2;
15561556
}
15571557

1558+
.line-clamp-3 {
1559+
overflow: hidden;
1560+
display: -webkit-box;
1561+
-webkit-box-orient: vertical;
1562+
-webkit-line-clamp: 3;
1563+
}
1564+
15581565
.block {
15591566
display: block;
15601567
}
@@ -3106,6 +3113,13 @@ select {
31063113
-webkit-line-clamp: 2;
31073114
}
31083115

3116+
.line-clamp-3 {
3117+
overflow: hidden;
3118+
display: -webkit-box;
3119+
-webkit-box-orient: vertical;
3120+
-webkit-line-clamp: 3;
3121+
}
3122+
31093123
.slide {
31103124
animation: slide 15s linear infinite;
31113125
}

layouts/partials/card-post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="relative p-4 sm:p-6 lg:p-8 border border-primary-200 dark:border-primary-800 rounded-lg hover:shadow-xl">
1+
<div class="relative p-4 sm:p-6 lg:p-8 border border-primary-300 dark:border-primary-800 rounded-lg hover:shadow-xl">
22
{{ with .Params.image }}
33
<div class="aspect-w-16 aspect-h-9 lg:aspect-h-10 rounded overflow-hidden block mb-7">
44
{{ partial "components/image-responsive" (dict "src" (. | relURL) "alt" $.Title "class" "w-full h-full object-center object-cover" "sizes" "(min-width: 1024px) 50vw, 100vw" "widths" (slice 640 1024 2048)) }}
@@ -13,6 +13,6 @@
1313
<time datetime="2020-03-16" class="inline-block whitespace-nowrap uppercase bg-slate-100 dark:bg-primary-900 text-slate-600 dark:text-slate-300 text-xs font-medium rounded-full px-2 py-1 lg:px-3 lg:py-2 tracking-wider">{{ dateFormat "Jan 02, 2006" .Date }}</time>
1414
</div>
1515
<h3 class="text-2xl md:text-3xl leading-normal md:leading-normal font-bold font-heading mt-5 text-blue-950 dark:text-white">{{ .Title }}</h3>
16-
<p class="mt-3 text-base leading-loose line-clamp-2 text-slate-600 dark:text-slate-300">{{ .Summary }}</p>
16+
<div class="mt-3 text-base leading-loose line-clamp-3 text-slate-600 dark:text-slate-300">{{ .Summary }}</div>
1717
<a href="{{ .Permalink }}" class="absolute inset-0" title="{{ .Title }}"></a>
1818
</div>

0 commit comments

Comments
 (0)