This commit is contained in:
浪子
2024-11-08 14:57:59 +08:00
parent c606be86a6
commit 4e3310f10b
24 changed files with 35 additions and 36 deletions
+13 -12
View File
@@ -8,10 +8,10 @@
<div id=config-carrier data-hue=250></div>
<div>
<div class="absolute w-full" id=banner-wrapper style=--configHue:250 data-astro-cid-sckkx6r4>
<div class="overflow-hidden relative h-full hidden object-center object-cover">
<div class="overflow-hidden relative h-full object-center object-cover">
<div class="transition absolute pointer-events-none bg-opacity-50 dark:bg-black/10 inset-0"></div><img
alt="Banner image of the blog" class="object-cover h-full w-full" decoding=async height=1369
loading=lazy src=/_astro/demo-banner.WD4SMgz__nlqjd.webp style=object-position:center width=1920>
loading=lazy src=<?php $this->options->themeUrl('/assets/img/demo-banner.WD4SMgz__nlqjd.webp'); ?> style=object-position:center width=1920>
</div>
</div>
<div
@@ -53,8 +53,8 @@
<use xlink:href=#ai:material-symbols:schedule-outline-rounded></use>
</svg></div>
<div class=text-sm><?php $content = $this->content; // 获取文章内容 ?>
<?php $readingTime = getReadingTime($content); // 计算阅读时间 ?>
<?php echo isset($readingTime) ? $readingTime . ' minutes' : '未知'; ?></div>
<?php $readingTime = getReadingTime($content); // 计算阅读时间 ?>
<?php echo isset($readingTime) ? $readingTime . ' minutes' : '未知'; ?></div>
</div>
</div>
<div class="relative onload-animation">
@@ -91,15 +91,15 @@
</svg></div>
<div class="flex items-center flex-row flex-nowrap" data-astro-cid-qtyrxm4s>
<?php foreach($this->categories as $category): ?>
<a href="<?php echo $category['permalink']; ?>" class="transition text-sm text-50 dark:hover:text-[var(--primary)] font-medium hover:text-[var(--primary)] link-lg whitespace-nowrap">
<?php echo $category['name']; ?></a>
<?php endforeach; ?>
<a href="<?php echo $category['permalink']; ?>" class="transition text-sm text-50 dark:hover:text-[var(--primary)] font-medium hover:text-[var(--primary)] link-lg whitespace-nowrap">
<?php echo $category['name']; ?>
</a>
<?php endforeach; ?>
</div>
</div>
<div class="flex items-center" data-astro-cid-qtyrxm4s>
<div class=meta-icon data-astro-cid-qtyrxm4s><svg
<div class=meta-icon data-astro-cid-qtyrxm4s>
<svg
data-icon=material-symbols:tag-rounded height=1em viewBox="0 0 24 24"
width=1em class=text-xl data-astro-cid-qtyrxm4s>
<symbol id=ai:material-symbols:tag-rounded>
@@ -108,7 +108,8 @@
fill=currentColor />
</symbol>
<use xlink:href=#ai:material-symbols:tag-rounded></use>
</svg></div>
</svg>
</div>
<div class="flex items-center flex-row flex-nowrap" data-astro-cid-qtyrxm4s>
<?php $tags = $this->tags; // 获取标签
@@ -195,7 +196,7 @@
class="transition whitespace-nowrap dark:text-white/75 text-black/75 max-w-[calc(100%_-_3rem)] overflow-ellipsis overflow-hidden">
<?php $this->theNext('<p class="w-full active:scale-95 font-bold overflow-hidden">%s</p>', '没有了'); ?>
</div>
<svg data-icon=material-symbols:chevron-right-rounded
<svg data-icon=material-symbols:chevron-right-rounded
height=32 viewBox="0 0 24 24" width=32 class=text-[var(--primary)]>
<symbol id=ai:material-symbols:chevron-right-rounded>
<path