2025.4.13

This commit is contained in:
Vaica committed 2025-04-13 19:08:41 +08:00
1 parent 768dfb0733
commit 7ecd47d514
20 files changed
+53 -5186

No files matched your search

-4
View File
@@ -1,4 +0,0 @@
---
title: "文章列表"
date: 2023-01-01
---
-3
View File
@@ -13,6 +13,3 @@ HasCJKLanguage = true
# 去掉post
[permalinks]
post = "/:slug/"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 34 KiB

+1 -7
View File
@@ -10,8 +10,7 @@ title = '优世界'
# 自定义参数设置
[params]
# 自定义作者头像的 URL
authorImage = "/image/ql.jpg"
authorImage = "/image/tx10.jpg"
# 自定义描述
description = "风吹云散,云卷云舒"
@@ -59,11 +58,6 @@ name = "archives"
weight = 20
url = "/archives"
[[menu.main]]
name = "memos"
weight = 20
url = "/memos"
# 模块配置
[module]
# Hugo 版本要求
+44 -31
View File
@@ -1,36 +1,49 @@
{{ define "main" }}
<div id="pjax-container">
<div class="post-content" itemprop="articleBody" uk-scrollspy="target: > *; cls: uk-animation-slide-bottom-small; delay: 0">
<div class="index-laodao">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bird"><path d="M16 7h.01"/><path d="M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20"/><path d="m20 7 2 .5-2 .5"/><path d="M10 18v3"/><path d="M14 17.75V21"/><path d="M7 18a6 6 0 0 0 3.84-10.61"/></svg>
<div class="index-laodao-titile">说说</div>
<div id="pjax-container" uk-scrollspy="target: > div,a; cls: uk-animation-slide-bottom-small; delay: 0">
<article>
<div class="recent-posts section">
<h2 class="section-header">随笔<i class="ri-quill-pen-line"></i></h2>
<div class="posts">
<!-- 使用 sort 对文章按 Weight 排序 -->
{{ $posts := sort (where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden")
"Weight" }}
{{ $paginator := .Paginate $posts }}
{{ range $paginator.Pages }}
<div class="post">
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<!-- 计算每篇文章的发布时间与当前时间的差值 -->
{{ $publishDate := .Date }}
{{ $currentTime := now }}
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
<!-- 判断发布时间是否小于 24 小时,并且没有 weight 属性 -->
{{ if and (lt $timeDiff 24) (not .Params.weight) }}
<span class="new-post-message"></span>
{{ end }}
<!-- 判断发布时间和 weight 属性 -->
{{ if .Params.weight }}
<!-- 如果有 weight 属性,添加 pushpin 图标 -->
<img src="/image/zd_top.png" alt="" srcset="" style="width: 19px;position: relative;bottom: 2px;right: 3px;box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);cursor: pointer;transform: 1s;">
{{ end }}
</div>
<!--memos-->
<div id="memos"></div>
<div id="bber"></div>
<!--相对时间-->
<script src="https://koobai.com/js/moment.min.js?v=2.29.4"></script>
<script src="https://koobai.com/js/moment.twitter.min.js"></script>
<script>
function formatDate(param) {
if(typeof param === 'number') {
param = new Date(param * 1000).toISOString();
}
return moment(Date.parse(param)).twitterLong().replace(/\s\d{2}:\d{2}/, '');
}
</script>
<!-- 加载 Markdown 语法-->
<script src="https://fastly.jsdelivr.net/npm/marked/marked.min.js"></script>
<!--评论加载-->
<link href="https://img.koobai.com/Artalk.css" rel="stylesheet">
<style>
.atk-loading{
background: #FFFFFF;
}
</style>
<script src="https://img.koobai.com/Artalk.js"></script>
<!--memos结束-->
{{ end }}
</div>
</div>
</div>
</article>
<ul class="pagination">
<li class="page-item page-next">
{{ if $paginator.HasNext }}
<a class="next" title="下一页" href="{{ $paginator.Next.URL }}">下一页</a>
{{ end }}
</li>
<li class="page-item page-previous">
{{ if $paginator.HasPrev }}
<a class="prev" title="上一页" href="{{ $paginator.Prev.URL }}">上一页</a>
{{ end }}
</li>
</ul>
</div>
{{ end }}
+1 -3
View File
@@ -22,9 +22,7 @@
el: '#Comments', // 绑定元素的 Selector
server: 'https://artalk.usj.cc', // 后端地址
site: '优世界', // 你的站点名
flatMode: true,
theme: 'light',
darkMode: false
flatMode: true
})
}
</script>
-4
View File
@@ -25,10 +25,6 @@
<script src="/js/echarts.min.js"></script>
<script src="/js/tiaozhuan.js"></script>
<script async src="/js/bsz.js"></script>
<!--memos 内容-->
<script src="/js/memos.js?v=1.4.4" defer></script>
<script src="/js/coco-message.min.js"></script>
<!--memos 结束-->
</body>
</html>
+1 -1
View File
@@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{{ .Title }}</title>
<!-- RSS Feed -->
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="https://rss.usj.cc">
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="/rss.xml">
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!-- Stylesheets -->
+1 -1
View File
@@ -20,11 +20,11 @@
<nav class="nav">
<ul class="flat">
<li class="active"><a href="/">首页</a></li>
<li class="active"><a href="/post/">文章</a></li>
<li class="active"><a href="/about/">关于</a></li>
<li class="active"><a href="/ly/">留言</a></li>
<li class="active"><a href="/archives/">归档</a></li>
<li class="active"><a href="/links/">友链</a></li>
<!--<li class="active"><a href="/circles/">友圈</a></li>-->
</ul>
</nav>
</div>
-49
View File
@@ -1,49 +0,0 @@
{{ define "main" }}
<div id="pjax-container" uk-scrollspy="target: > div,a; cls: uk-animation-slide-bottom-small; delay: 0">
<article>
<div class="recent-posts section">
<h2 class="section-header">随笔<i class="ri-quill-pen-line"></i></h2>
<div class="posts">
<!-- 使用 sort 对文章按 Weight 排序 -->
{{ $posts := sort (where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden")
"Weight" }}
{{ $paginator := .Paginate $posts }}
{{ range $paginator.Pages }}
<div class="post">
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<!-- 计算每篇文章的发布时间与当前时间的差值 -->
{{ $publishDate := .Date }}
{{ $currentTime := now }}
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
<!-- 判断发布时间是否小于 24 小时,并且没有 weight 属性 -->
{{ if and (lt $timeDiff 24) (not .Params.weight) }}
<span class="new-post-message"></span>
{{ end }}
<!-- 判断发布时间和 weight 属性 -->
{{ if .Params.weight }}
<!-- 如果有 weight 属性,添加 pushpin 图标 -->
<img src="/image/zd_top.png" alt="" srcset="" style="width: 19px;position: relative;bottom: 2px;right: 3px;box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);cursor: pointer;transform: 1s;">
{{ end }}
</div>
{{ end }}
</div>
</div>
</article>
<ul class="pagination">
<li class="page-item page-next">
{{ if $paginator.HasNext }}
<a class="next" title="下一页" href="{{ $paginator.Next.URL }}">下一页</a>
{{ end }}
</li>
<li class="page-item page-previous">
{{ if $paginator.HasPrev }}
<a class="prev" title="上一页" href="{{ $paginator.Prev.URL }}">上一页</a>
{{ end }}
</li>
</ul>
</div>
{{ end }}
+5 -12
View File
@@ -50,21 +50,14 @@
// 定义暗黑模式下的颜色方案
var darkTheme = {
backgroundColor: '#FFFFFF',
fangkuaicolor:'#F4F4F4',
gaoliangcolor: ['#333'],
riqiColor: '#999',
textbrcolor: '#FFF',
backgroundColor: '#1A1718',
fangkuaicolor:'#282325',
gaoliangcolor: ['#b25f2f'],
riqiColor: '#666',
textbrcolor: '#332D2F',
xiankuangcolor:'rgba(0, 0, 0, 0.0)',
};
// 备份暗黑模式
// backgroundColor: '#1A1718',
// fangkuaicolor:'#282325',
// gaoliangcolor: ['#b25f2f'],
// riqiColor: '#666',
// textbrcolor: '#332D2F',
// 根据浏览器主题模式选择当前主题
var currentTheme = prefersDarkMode ? darkTheme : lightTheme;
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

-1
View File
@@ -1 +0,0 @@
"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}!function(o,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(o=o||self,o.cocoMessage=t())}(void 0,function(){function o(o,t){var e=document.createElement("div");for(var n in o){var s=o[n];"className"==n?(n="class",e.setAttribute(n,s)):"_"==n[0]&&e.addEventListener(n.slice(1),s)}if("string"==typeof t)e.innerHTML=t;else if("object"==_typeof(t)&&t.tagName)e.appendChild(t);else if(t)for(var i=0;i<t.length;i++){var r=t[i];e.appendChild(r)}return e}function t(o,t){for(var e in t)o.style[e]=t[e];""===o.getAttribute("style")&&o.removeAttribute("style")}function e(o,t){var e=o.className||"";if(!n(e,t)){var s=e.split(/\s+/);s.push(t),o.className=s.join(" ")}}function n(o,t){return o.indexOf(t)>-1}function s(o,t){var e=o.className||"";if(n(e,t)){var s=e.split(/\s+/),i=s.indexOf(t);s.splice(i,1),o.className=s.join(" ")}""===o.className&&o.removeAttribute("class")}function i(){return r(arguments,"info")}function r(o,t){var e={};for(var n in h)e[n]=h[n];for(var s=0;s<o.length;s++){var i=o[s];void 0!==i&&("string"==typeof i||"object"==_typeof(i)?e.msg=i:"boolean"==typeof i?e.showClose=i:"function"==typeof i?e.onClose=i:"number"==typeof i&&(e.duration=i))}return e.type=t,a(e)}function a(e){var n=e.type,i=e.duration,r=e.msg,a=e.showClose,d=e.onClose,g=0===i,p=l();"loading"==n&&(r=""===r?"正在加载":r,g=a,i=0);var h=o({className:"coco-msg-wrapper"},[o({className:"coco-msg coco-msg-fade-in ".concat(n)},[o({className:"coco-msg-icon"},p[n]),o({className:"coco-msg-content"},r),o({className:"coco-msg-wait ".concat(g?"coco-msg-pointer":"coco-msg-wait-hidden"),_click:function(){f(h,d)}},c(g)||"")])]);return 0!==i&&setTimeout(function(){f(h,d)},i),m.children.length||document.body.appendChild(m),m.appendChild(h),t(h,{height:h.offsetHeight+"px"}),setTimeout(function(){s(h.children[0],"coco-msg-fade-in")},300),function(){f(h,d)}}function c(o){return o?'<svg class="coco-msg-close" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515"></path></svg>':""}function f(o,n){o&&(t(o,{padding:0,height:0}),e(o.children[0],"coco-msg-fade-out"),n&&n(),setTimeout(function(){if(o){for(var t=!1,e=0;e<m.children.length;e++)m.children[e]===o&&(t=!0);t&&d(o),o=null,m.children.length||t&&d(m)}},300))}function l(){return{info:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3250"><path d="M469.333333 341.333333h85.333334v469.333334H469.333333z" fill="#ffffff" p-id="3251"></path><path d="M469.333333 213.333333h85.333334v85.333334H469.333333z" fill="#ffffff" p-id="3252"></path><path d="M384 341.333333h170.666667v85.333334H384z" fill="#ffffff" p-id="3253"></path><path d="M384 725.333333h256v85.333334H384z" fill="#ffffff" p-id="3254"></path></svg>\n ',success:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1807"><path d="M455.42 731.04c-8.85 0-17.75-3.05-24.99-9.27L235.14 553.91c-16.06-13.81-17.89-38.03-4.09-54.09 13.81-16.06 38.03-17.89 54.09-4.09l195.29 167.86c16.06 13.81 17.89 38.03 4.09 54.09-7.58 8.83-18.31 13.36-29.1 13.36z" p-id="1808" fill="#ffffff"></path><path d="M469.89 731.04c-8.51 0-17.07-2.82-24.18-8.6-16.43-13.37-18.92-37.53-5.55-53.96L734.1 307.11c13.37-16.44 37.53-18.92 53.96-5.55 16.43 13.37 18.92 37.53 5.55 53.96L499.67 716.89c-7.58 9.31-18.64 14.15-29.78 14.15z" p-id="1809" fill="#ffffff"></path></svg>\n ',warning:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18912"><path d="M468.114286 621.714286c7.314286 21.942857 21.942857 36.571429 43.885714 36.571428s36.571429-14.628571 43.885714-36.571428L585.142857 219.428571c0-43.885714-36.571429-73.142857-73.142857-73.142857-43.885714 0-73.142857 36.571429-73.142857 80.457143l29.257143 394.971429zM512 731.428571c-43.885714 0-73.142857 29.257143-73.142857 73.142858s29.257143 73.142857 73.142857 73.142857 73.142857-29.257143 73.142857-73.142857-29.257143-73.142857-73.142857-73.142858z" p-id="18913" fill="#ffffff"></path></svg>\n ',error:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515" fill="#ffffff"></path></svg>\n ',loading:'\n <div class="coco-msg_loading">\n <svg class="coco-msg-circular" viewBox="25 25 50 50">\n <circle class="coco-msg-path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10"/>\n </svg>\n </div>\n '}}function d(o){oLine truncated
-4
View File
@@ -146,7 +146,3 @@ function flattenComments(comments) {
if (document.querySelector("#Comments") && !isMobile()) {
loadBarrager()
}
// 灯箱调用(首页顶部/Memos页面)
window.ViewImage && ViewImage.init('.content_zhengwen img, .top-img,.gallery-thumbnail img,.posts_photo a,.photo-moment a');
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
-247
View File
@@ -1,247 +0,0 @@
{
"Emoji": {
"type": "emoji",
"container":[
{
"icon": "😂",
"text": "哭笑不得"
},
{
"icon": "😎",
"text": "酷"
},
{
"icon": "😏",
"text": "坏笑"
},
{
"icon": "😅",
"text": "流汗"
},
{
"icon": "😄",
"text": "笑"
},
{
"icon": "😜",
"text": "调皮"
},
{
"icon": "🤣",
"text": "笑倒"
},
{
"icon": "😭",
"text": "大哭"
},
{
"icon": "🙄",
"text": "白眼"
},
{
"icon": "🤐",
"text": "嘘"
},
{
"icon": "😋",
"text": "美食脸"
},
{
"icon": "🥶",
"text": "冰冻"
},
{
"icon": "🥵",
"text": "热"
},
{
"icon": "😴",
"text": "睡觉"
},
{
"icon": "🤧",
"text": "打喷嚏"
},
{
"icon": "🍉",
"text": "西瓜"
},
{
"icon": "😱",
"text": "惊恐"
},
{
"icon": "👋",
"text": "招手"
},
{
"icon": "🔨",
"text": "锤子"
},
{
"icon": "🐶",
"text": "小狗"
},
{
"icon": "👏",
"text": "鼓掌"
},
{
"icon": "🙈",
"text": "不看"
},
{
"icon": "😓",
"text": "汗"
},
{
"icon": "😍",
"text": "爱心眼"
},
{
"icon": "🤝",
"text": "握手"
},
{
"icon": "🥺",
"text": "求你"
},
{
"icon": "😔",
"text": "沮丧"
},
{
"icon": "😪",
"text": "困"
},
{
"icon": "😕",
"text": "困惑"
},
{
"icon": "🤷‍♂️",
"text": "摊手"
},
{
"icon": "😛",
"text": "舌头"
},
{
"icon": "🤭",
"text": "偷笑"
},
{
"icon": "🤮",
"text": "呕吐"
},
{
"icon": "🥺",
"text": "求你"
},
{
"icon": "🙂",
"text": "轻松的笑"
},
{
"icon": "😈",
"text": "恶魔"
},
{
"icon": "😃",
"text": "笑脸"
},
{
"icon": "🤫",
"text": "嘘"
},
{
"icon": "😒",
"text": "无语"
},
{
"icon": "😵",
"text": "晕"
},
{
"icon": "💪",
"text": "加油"
},
{
"icon": "👍",
"text": "赞"
},
{
"icon": "👎",
"text": "踩"
},
{
"icon": "😡",
"text": "愤怒"
},
{
"icon": "🤬",
"text": "怒骂"
},
{
"icon": "😖",
"text": "心烦"
},
{
"icon": "🌹",
"text": "玫瑰"
},
{
"icon": "🏃",
"text": "跑步"
},
{
"icon": "😆",
"text": "大笑"
},
{
"icon": "💵",
"text": "钞票"
},
{
"icon": "😘",
"text": "飞吻"
},
{
"icon": "😷",
"text": "生病"
},
{
"icon": "🤕",
"text": "受伤"
},
{
"icon": "🎉",
"text": "庆祝"
},
{
"icon": "❤️",
"text": "红心"
},
{
"icon": "💔",
"text": "心碎"
},
{
"icon": "😣",
"text": "无奈"
},
{
"icon": "😘",
"text": "飞吻"
},
{
"icon": "💩",
"text": "一坨便便"
},
{
"icon": "🤩",
"text": "爱慕"
}
]
}
}