2024-10-05 15:35:48 +08:00
|
|
|
{{ define "main" }}
|
|
|
|
|
<div id="pjax-container">
|
2024-10-05 18:05:56 +08:00
|
|
|
<style>
|
2026-05-19 19:34:34 +08:00
|
|
|
.links ul>li {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-left: 1.75em;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.links a {
|
|
|
|
|
color: var(--link-color-light);
|
|
|
|
|
font-weight: 500;
|
2024-10-05 18:05:56 +08:00
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.links li {
|
|
|
|
|
margin-top: .5em;
|
|
|
|
|
margin-bottom: .5em;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.links ul>li:before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
background-color: #d1d5db;
|
2024-10-05 18:05:56 +08:00
|
|
|
border-radius: 50%;
|
2026-05-19 19:34:34 +08:00
|
|
|
width: .375em;
|
|
|
|
|
height: .375em;
|
|
|
|
|
top: .6875em;
|
|
|
|
|
left: .25em;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.url-name {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.url-name::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 12px;
|
|
|
|
|
bottom: 3px;
|
|
|
|
|
left: -4px;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
background-color: #5d5d5d;
|
|
|
|
|
opacity: .3;
|
|
|
|
|
transform: skew(-35deg);
|
|
|
|
|
transition: opacity .2s ease;
|
|
|
|
|
border-radius: 3px 8px 10px 6px;
|
|
|
|
|
transition: 0.1s ease background-color;
|
|
|
|
|
width: 112%;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
.url-name:hover::before {
|
|
|
|
|
opacity: 0.5;
|
2024-10-05 18:05:56 +08:00
|
|
|
}
|
2026-05-19 19:34:34 +08:00
|
|
|
|
|
|
|
|
[data-theme="dark"] .links a {
|
|
|
|
|
color: var(--link-color-dark);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="dark"] .url-name::before {
|
|
|
|
|
background-color: #e5e7eb;
|
|
|
|
|
opacity: 0.18;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="dark"] .url-name:hover::before {
|
|
|
|
|
opacity: 0.35;
|
2026-01-18 23:09:07 +08:00
|
|
|
}
|
2024-10-05 18:05:56 +08:00
|
|
|
</style>
|
2024-10-05 15:35:48 +08:00
|
|
|
<div class="post-content" itemprop="articleBody">
|
2026-05-19 19:34:34 +08:00
|
|
|
<div class="links">
|
|
|
|
|
<ul id="links-list" uk-scrollspy="target: > li; cls: uk-animation-slide-bottom-small; delay: 50">
|
|
|
|
|
</ul>
|
2024-10-05 15:35:48 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-05-19 19:30:34 +08:00
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
(function() {
|
2026-05-19 19:34:34 +08:00
|
|
|
var list = document.getElementById('links-list');
|
|
|
|
|
if (!list) return;
|
2026-05-19 19:30:34 +08:00
|
|
|
|
|
|
|
|
fetch('https://rssapi.usj.cc/api/links?t=' + new Date().getTime())
|
|
|
|
|
.then(function(res) { return res.json(); })
|
|
|
|
|
.then(function(data) {
|
|
|
|
|
var links = data.links || [];
|
2026-05-19 19:34:34 +08:00
|
|
|
if (links.length === 0) return;
|
2026-05-19 19:30:34 +08:00
|
|
|
var html = '';
|
2026-05-19 19:34:34 +08:00
|
|
|
links.forEach(function(l) {
|
|
|
|
|
html += '<li><a href="' + l.url + '" class="url-name" target="_blank">' + l.name + '</a><span style="margin-left: 13px;">' + (l.description || '') + '</span></li>';
|
2026-05-19 19:30:34 +08:00
|
|
|
});
|
2026-05-19 19:34:34 +08:00
|
|
|
list.innerHTML = html;
|
2026-05-19 19:30:34 +08:00
|
|
|
})
|
2026-05-19 19:34:34 +08:00
|
|
|
.catch(function() {});
|
2026-05-19 19:30:34 +08:00
|
|
|
})();
|
|
|
|
|
</script>
|
2024-10-05 15:35:48 +08:00
|
|
|
</div>
|
2026-01-18 23:09:07 +08:00
|
|
|
{{ end }}
|