Update new-links-lite.html

This commit is contained in:
小赵同学 committed 2024-10-05 18:05:56 +08:00
1 parent 963e839c05
commit f12a97dd75
1 file changed
+7 -4
@@ -1,4 +1,5 @@
{{ define "main" }}
<div id="pjax-container">
<style>
.links ul>li {
position: relative;
@@ -45,19 +46,21 @@
transition: opacity .2s ease;
border-radius: 3px 8px 10px 6px;
transition: 0.1s ease background-color;
width: 112%; /* 宽度根据a标签的内容动态变化 */
width: 112%;
/* 宽度根据a标签的内容动态变化 */
}
.url-name:hover::before {
opacity: 0.5; /* 鼠标悬浮时可以改变不透明度 */
opacity: 0.5;
/* 鼠标悬浮时可以改变不透明度 */
}
</style>
<div id="pjax-container">
<div class="post-content" itemprop="articleBody">
<div class="links">
<ul uk-scrollspy="target: > li; cls: uk-animation-slide-bottom-small; delay: 0">
{{ range site.Data.links.blogs }}
<li><a href="{{ .url }}" class="url-name">{{ .name }}</a><span style="margin-left: 13px;">{{ .description }}</span></li>
<li><a href="{{ .url }}" class="url-name">{{ .name }}</a><span style="margin-left: 13px;">{{
.description }}</span></li>
{{ end }}
</ul>
</div>