Update new-links-lite.html

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