1
0
Fork 0

add featured support

This commit is contained in:
nanxiaobei 2023-05-21 03:20:31 +08:00
parent 9b8a5e0db9
commit 2c35515206
3 changed files with 40 additions and 0 deletions

View file

@ -1188,6 +1188,14 @@ body {
margin-bottom: 0.375rem; margin-bottom: 0.375rem;
} }
.mb-2 {
margin-bottom: 0.5rem;
}
.mb-2\.5 {
margin-bottom: 0.625rem;
}
.mb-20 { .mb-20 {
margin-bottom: 5rem; margin-bottom: 5rem;
} }
@ -1240,6 +1248,10 @@ body {
display: block; display: block;
} }
.inline-block {
display: inline-block;
}
.flex { .flex {
display: flex; display: flex;
} }
@ -1489,10 +1501,23 @@ body {
line-height: 1.25rem; line-height: 1.25rem;
} }
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
.font-bold { .font-bold {
font-weight: 700; font-weight: 700;
} }
.font-semibold {
font-weight: 600;
}
.uppercase {
text-transform: uppercase;
}
.\!leading-none { .\!leading-none {
line-height: 1 !important; line-height: 1 !important;
} }
@ -1501,6 +1526,10 @@ body {
line-height: 5rem; line-height: 5rem;
} }
.tracking-wide {
letter-spacing: 0.025em;
}
.text-black { .text-black {
--tw-text-opacity: 1; --tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
@ -1514,6 +1543,10 @@ body {
opacity: 0.6; opacity: 0.6;
} }
.opacity-70 {
opacity: 0.7;
}
.shadow-xl { .shadow-xl {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);

View file

@ -7,6 +7,7 @@ tags = [
"markdown", "markdown",
"text", "text",
] ]
weight = 10
+++ +++
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.

View file

@ -47,6 +47,12 @@
{{ end }} {{ end }}
<section class="relative my-10 first-of-type:mt-0 last-of-type:mb-0"> <section class="relative my-10 first-of-type:mt-0 last-of-type:mb-0">
{{ if gt .Weight 0 }}
<span
class="mb-2.5 inline-block text-xs font-semibold uppercase tracking-wide opacity-70"
>Featured</span
>
{{ end }}
<h2 class="!my-0 pb-1 !leading-none">{{ .Title }}</h2> <h2 class="!my-0 pb-1 !leading-none">{{ .Title }}</h2>
<time class="text-sm opacity-60" <time class="text-sm opacity-60"
>{{ .Date | time.Format ":date_medium" }}</time >{{ .Date | time.Format ":date_medium" }}</time