This commit is contained in:
浪子 2024-05-06 16:34:08 +08:00
parent 1998446435
commit ebdc06bd01
24 changed files with 525 additions and 97 deletions

View File

@ -0,0 +1,8 @@
---
title: "文章归档"
menu:
main:
name: 文章
weight: 10
---

View File

@ -12,6 +12,9 @@ OpenWRT应该也可以用
可以支持SSR SS VLESS VMESS等 可以支持SSR SS VLESS VMESS等
{{<link "406">}}
[SSR-Plus_x86_update.zip][1] [SSR-Plus_x86_update.zip][1]

View File

@ -8,19 +8,25 @@ tags:
- 群晖 - 群晖
--- ---
# 问题出现 ## 问题出现
群晖docker升级到DSM7.2之后出现了新的问题,原本可以正常访问的群晖镜像仓库竟然无法访问了. 群晖docker升级到DSM7.2之后出现了新的问题,原本可以正常访问的群晖镜像仓库竟然无法访问了.
原本启用注册表镜像URL就可以解决这个问题 原本启用注册表镜像URL就可以解决这个问题
如今也无法使用这个解决方案了 如今也无法使用这个解决方案了
经过排查发现原来是因为docker仓库的域名被墙了. 经过排查发现原来是因为docker仓库的域名被墙了.
# 解决办法
## 解决办法
使用魔法. 使用魔法.
## 准备工作 ### 准备工作
请参见[post cid="341" /]
搭建一个代理服务,使用海外或者港台地区VPS 搭建一个代理服务,使用海外或者港台地区VPS
## 开启群晖SSH
### 开启群晖SSH
![微信截图_20230606091022.png][1] ![微信截图_20230606091022.png][1]
## 使用SSH登录
### 使用SSH登录
`ssh 用户名@群晖IP`登录 `ssh 用户名@群晖IP`登录
例如 例如
``` ```
@ -46,7 +52,7 @@ mzz2017/v2raya
示例 192.168.31.100:2017 示例 192.168.31.100:2017
sock代理端口为20170 sock代理端口为20170
http代理端口为20171 http代理端口为20171
## 使用v2raya ### 使用v2raya
进入web管理界面点击创建 进入web管理界面点击创建
填写代理资料 填写代理资料
@ -56,7 +62,7 @@ http代理端口为20171
![微信截图_20230606092047.png][4] ![微信截图_20230606092047.png][4]
![设置.png][5] ![设置.png][5]
设置完成后点击左上角的运行 设置完成后点击左上角的运行
## 群晖设置 ### 群晖设置
打开控制面板-网络 打开控制面板-网络
![群晖代理.png][6] ![群晖代理.png][6]
保存即可 保存即可

View File

@ -1,5 +0,0 @@
---
title: "设备"
description: "富士相机和镜头"
cover: "https://static.fatesinger.com/2021/12/vhp6eou5x2wqh2zy.jpg"
---

View File

@ -1,6 +0,0 @@
---
title: "酒店"
description: "酒店体验"
layout: travel
cover: "https://static.fatesinger.com/2023/11/lfvsapye5xvq2m9o.jpg"
---

View File

@ -1,5 +0,0 @@
---
title: "生活方式"
description: "hi"
cover: "https://static.fatesinger.com/2021/12/60n8hsw9ajd5y55r.jpg"
---

View File

@ -1,5 +0,0 @@
---
title: "笔记"
description: "hi"
cover: "https://static.fatesinger.com/2023/10/aeqd36ewmo15vnzj.jpg"
---

View File

@ -2,7 +2,6 @@
title: "朋友们" title: "朋友们"
subtitle: "blogroll" subtitle: "blogroll"
layout: "links" layout: "links"
wikipedia: "https://en.wikipedia.org/wiki/Bruce_Willis"
menu: menu:
main: main:
name: 链接 name: 链接

View File

@ -35,7 +35,7 @@ theme = 'farallon'
[taxonomies] [taxonomies]
category = 'categories' category = 'categories'
tag = 'tags' tag = 'tags'
story = 'archives'
[Params] [Params]
search= true search= true
description = '资深网民孙先生.' description = '资深网民孙先生.'

155
themes/farallon/README.md Normal file
View File

@ -0,0 +1,155 @@
# Hugo Theme Farallon
![Hugo Theme Farallon](https://static.fatesinger.com/2023/06/u1ak8xgmyn9ec24r.png)
Farallon is a simple single column hugo theme with perfect performace and elegance design.
## Usage
```
git submodule add https://github.com/bigfa/hugo-theme-farallon.git themes/farallon
echo "theme = 'farallon'" >> hugo.toml
```
[Full demo site](https://github.com/bigfa/bigfa.github.io)
## Release Notes
### 0.3.7
- add footer sns icons
### 0.3.6
- add post category card
- add github icon
### 0.3.5
- add author sns icons
### 0.3.4
- change category file name
### 0.3.3
- add post type memo
### 0.3.2
- add story author card
### 0.3.1
- add sticky icon
- fixed db list style in dark mode
### 0.3.0
- add search
### 0.2.11
- add link shortcode
### 0.2.10
- fixed category list and tag list style
- relative time support i18n
### 0.2.9
- fixed url render error
- add friend links template
### 0.2.8
- add `pre` and `code` style
### 0.2.7
- refactory taxonomy
### 0.2.6
- toc style changed
### 0.2.5
- Fixed ol list style error
### 0.2.4
- Added a gear template
### 0.2.3
- Added a “back to top” button.
### 0.2.2
- Added support for table of contents (TOC).
### 0.2.1
- Fixed compatibility issues with older versions of SCSS.
### 0.2.0
- Added dark mode support.
- Fixed footer style issues on mobile devices.
### 0.1.0
- Added theme information.
### 0.0.8
- Fixed date formatting issue on Safari browser.
### 0.0.7
- Changed to local item retrieval without the need for a token.
### 0.0.6
- Added support for Douban items.
Usage:
Scan the QR code with WeChat at https://node.wpista.com/.
Enter your Douban numeric ID and click “Save” to automatically sync your Douban records.
Click “Get integration token” to generate a token.
Add the following parameter to your site configuration:
```
[params]
wpdToken = 'token generated above'
```
### 0.0.5
- Fixed styling issues on category/tag pages.
### 0.0.4
- Added relative time display.
- Included sample data.
### 0.0.3
- Used normalize.css.
### 0.0.2
- Added menu settings.
- Added a parameter to control the display of site owner information.
### 0.0.1
- Initial setup.

View File

@ -0,0 +1,153 @@
# Hugo Theme Farallon
![Hugo 主题 Farallon](https://static.fatesinger.com/2023/06/u1ak8xgmyn9ec24r.png)
## 使用方法
```
git submodule add https://github.com/bigfa/hugo-theme-farallon.git themes/farallon
echo "theme = 'farallon'" >> hugo.toml
```
[完整演示站点](https://github.com/bigfa/bigfa.github.io)
## Release Note
### 0.3.7
- 增加页脚 SNS 图标
### 0.3.6
- 增加文章分类卡片
- 增加 Github 图标
### 0.3.5
- 增加作者 SNS 图标
### 0.3.4
- 修改分类文件名
### 0.3.3
- 增加状态文章格式
### 0.3.2
- 文章页增加作者信息
### 0.3.1
- 增加置顶标识
- 修复豆瓣页面暗黑模式下的样式问题
### 0.3.0
- 增加搜索
### 0.2.11
- 文章内链短代码
### 0.2.10
- 修正分类和标签归档页样式问题
- 相对时间多语言支持
### 0.2.9
- 修复链接渲染错误
- 增加友情链接页面模版
### 0.2.8
- 增加 `pre``code` 标签样式
### 0.2.7
- 整理分类页面
### 0.2.6
- 文章目录样式更新
### 0.2.5
- 有序列表样式修正
### 0.2.4
- 增加了一个卡片页面
### 0.2.3
- 增加了返回顶部按钮
### 0.2.2
- 增加 TOC 支持
### 0.2.1
- 修复 scss 低版本兼容性问题
### 0.2.0
- 增加暗黑模式支持
- 修复移动端 footer 样式问题
### 0.1.0
- 添加主题信息
### 0.0.8
- 修复 safari 浏览器下时间格式化错误的问题
### 0.0.7
- 修改为本地获取条目,无需设置 token
### 0.0.6
- 新增豆瓣条目支持
使用方法
微信扫码登录https://node.wpista.com/
输入你的豆瓣数字 id点击保存即可自动同步豆瓣记录。
点击 Get integration token 会生成一个 token。
在你的站点配置中加入参数
```
[params]
wpdToken= '上面生成的token'
```
### 0.0.5
- 修复分类页/标签页样式错误
### 0.0.4
- 增加相对时间
- 加入示例数据
### 0.0.3
- 使用`normalize.css`
### 0.0.2
- 增加菜单设置
- 增加一个是否显示站长信息的参数
### 0.0.1
初始化

View File

@ -1,2 +0,0 @@
[LocalizedFileNames]
favicon.ico=@favicon.ico,0

View File

@ -52,6 +52,27 @@
} }
} }
} }
&__sns {
display: flex;
align-items: center;
a {
margin: 0 12px 0 0;
display: flex;
}
svg {
fill: var(--farallon-text-color);
&:hover {
fill: var(--farallon-hover-color);
}
width: 18px;
height: 18px;
&.sns {
fill: none;
stroke: var(--farallon-text-color);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {

View File

@ -216,3 +216,79 @@
} }
} }
} }
.category--card {
padding: 15px 0;
display: flex;
align-items: center;
&__list {
border-top: 1px solid var(--farallon-border-color-light);
}
&__image {
img {
border-radius: 4px;
height: 64px;
object-fit: cover;
width: 64px;
// border: 1px solid var(--farallon-border-color);
}
margin-right: 15px;
width: 64px;
flex: 0 0 auto;
display: flex;
}
&__content {
flex: 1 1 auto;
}
&:hover {
.category--card__title {
color: var(--farallon-hover-color);
}
}
&__title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
line-height: 1;
}
&__description {
font-size: 14px;
color: var(--farallon-text-gray);
line-height: 1.2;
}
& + & {
position: relative;
&::before {
position: absolute;
left: 15px;
right: 15px;
top: 0;
height: 1px;
background-color: var(--farallon-border-color-light);
content: "";
}
}
}
@media (max-width: 768px) {
.author--card {
padding: 20px 0;
}
.category--card {
padding: 12px 0;
&__image {
width: 48px;
img {
height: 48px;
width: 48px;
}
}
&__title {
font-size: 16px;
}
&__description {
font-size: 12px;
}
}
}

View File

@ -18,7 +18,7 @@ class farallonDate {
years: "years ago", years: "years ago",
}; };
doms: Array<any> = []; doms: Array<any> = [];
VERSION: string = "0.3.1"; VERSION: string = "0.3.7";
constructor(config: any) { constructor(config: any) {
this.selector = config.selector; this.selector = config.selector;
if (config.timeFormat) { if (config.timeFormat) {

3
themes/farallon/go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/bigfa/hugo-theme-farallon
go 1.22.2

View File

@ -59,48 +59,11 @@
<div class="author--name">{{ .Site.Params.authorName }}</div> <div class="author--name">{{ .Site.Params.authorName }}</div>
<div class="author--description">{{ .Site.Params.authorDescription }}</div> <div class="author--description">{{ .Site.Params.authorDescription }}</div>
<div class="author--sns"> <div class="author--sns">
{{ if .Site.Params.feed }} {{ partial "sns.html" . }}
<a href="{{ .Site.Params.feed }}" target="_blank">
<svg class="sns" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 17C12 14 10 12 7 12" stroke-width="2.3" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M17 17C17 11 13 7 7 7" stroke-width="2.3" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M7 17.01L7.01 16.9989" stroke-width="2.5" stroke-linecap="round"
stroke-linejoin="round" />
<path
d="M21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8Z"
stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.telegram }}
<a href="{{ .Site.Params.telegram }}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px">
<path
d="M 25.154297 3.984375 C 24.829241 3.998716 24.526384 4.0933979 24.259766 4.2011719 C 24.010014 4.3016357 23.055766 4.7109106 21.552734 5.3554688 C 20.048394 6.0005882 18.056479 6.855779 15.931641 7.7695312 C 11.681964 9.5970359 6.9042108 11.654169 4.4570312 12.707031 C 4.3650097 12.746607 4.0439208 12.849183 3.703125 13.115234 C 3.3623292 13.381286 3 13.932585 3 14.546875 C 3 15.042215 3.2360676 15.534319 3.5332031 15.828125 C 3.8303386 16.121931 4.144747 16.267067 4.4140625 16.376953 C 5.3912284 16.775666 8.4218473 18.015862 8.9941406 18.25 C 9.195546 18.866983 10.29249 22.222526 10.546875 23.044922 C 10.714568 23.587626 10.874198 23.927519 11.082031 24.197266 C 11.185948 24.332139 11.306743 24.45034 11.453125 24.542969 C 11.511635 24.579989 11.575789 24.608506 11.640625 24.634766 L 11.644531 24.636719 C 11.659471 24.642719 11.67235 24.652903 11.6875 24.658203 C 11.716082 24.668202 11.735202 24.669403 11.773438 24.677734 C 11.925762 24.726927 12.079549 24.757812 12.216797 24.757812 C 12.80196 24.757814 13.160156 24.435547 13.160156 24.435547 L 13.181641 24.419922 L 16.191406 21.816406 L 19.841797 25.269531 C 19.893193 25.342209 20.372542 26 21.429688 26 C 22.057386 26 22.555319 25.685026 22.875 25.349609 C 23.194681 25.014192 23.393848 24.661807 23.478516 24.21875 L 23.478516 24.216797 C 23.557706 23.798129 26.921875 6.5273437 26.921875 6.5273438 L 26.916016 6.5507812 C 27.014496 6.1012683 27.040303 5.6826405 26.931641 5.2695312 C 26.822973 4.8564222 26.536648 4.4608905 26.181641 4.2480469 C 25.826669 4.0352506 25.479353 3.9700339 25.154297 3.984375 z M 24.966797 6.0742188 C 24.961997 6.1034038 24.970391 6.0887279 24.962891 6.1230469 L 24.960938 6.1347656 L 24.958984 6.1464844 C 24.958984 6.1464844 21.636486 23.196371 21.513672 23.845703 C 21.522658 23.796665 21.481573 23.894167 21.439453 23.953125 C 21.379901 23.91208 21.257812 23.859375 21.257812 23.859375 L 21.238281 23.837891 L 16.251953 19.121094 L 12.726562 22.167969 L 13.775391 17.96875 C 13.775391 17.96875 20.331562 11.182109 20.726562 10.787109 C 21.044563 10.471109 21.111328 10.360953 21.111328 10.251953 C 21.111328 10.105953 21.035234 10 20.865234 10 C 20.712234 10 20.506484 10.14875 20.396484 10.21875 C 18.963383 11.132295 12.671823 14.799141 9.8515625 16.439453 C 9.4033769 16.256034 6.2896636 14.981472 5.234375 14.550781 C 5.242365 14.547281 5.2397349 14.548522 5.2480469 14.544922 C 7.6958673 13.491784 12.47163 11.434667 16.720703 9.6074219 C 18.84524 8.6937992 20.838669 7.8379587 22.341797 7.1933594 C 23.821781 6.5586849 24.850125 6.1218894 24.966797 6.0742188 z" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="{{ .Site.Params.twitter }}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px">
<path
d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.instagram }}
<a href="{{ .Site.Params.instagram }}" target="_blank">
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.825091,2 L13.1738932,2 C14.8491598,2.00379146 15.2338099,2.01854561 16.1226982,2.059103 C17.187141,2.10765278 17.9141174,2.27672349 18.5502266,2.52395815 C19.2078518,2.77948955 19.7655588,3.12144192 20.3215589,3.67740233 C20.8775194,4.23340244 21.2194717,4.79110953 21.4750428,5.44873467 C21.7222377,6.08484389 21.8913085,6.81182019 21.9398582,7.87626307 C21.9869049,8.90737346 21.9992305,9.25998097 22,11.7357029 L22,12.2632942 C21.9992305,14.7389803 21.9869049,15.0915878 21.9398582,16.1226982 C21.8913085,17.187141 21.7222377,17.9141174 21.4750428,18.5502266 C21.2194717,19.2078518 20.8775194,19.7655588 20.3215589,20.3215589 C19.7655588,20.8775194 19.2078518,21.2194717 18.5502266,21.4750428 C17.9141174,21.7222377 17.187141,21.8913085 16.1226982,21.9398582 C15.0915878,21.9869049 14.7389803,21.9992305 12.2632942,22 L11.7357029,22 C9.25998097,21.9992305 8.90737346,21.9869049 7.87626307,21.9398582 C6.81182019,21.8913085 6.08484389,21.7222377 5.44873467,21.4750428 C4.79110953,21.2194717 4.23340244,20.8775194 3.67740233,20.3215589 C3.12144192,19.7655588 2.77948955,19.2078518 2.52395815,18.5502266 C2.27672349,17.9141174 2.10765278,17.187141 2.059103,16.1226982 C2.01854561,15.2338099 2.00379146,14.8491598 2,13.1738932 L2,10.825091 C2.00379146,9.14980144 2.01854561,8.76515134 2.059103,7.87626307 C2.10765278,6.81182019 2.27672349,6.08484389 2.52395815,5.44873467 C2.77948955,4.79110953 3.12144192,4.23340244 3.67740233,3.67740233 C4.23340244,3.12144192 4.79110953,2.77948955 5.44873467,2.52395815 C6.08484389,2.27672349 6.81182019,2.10765278 7.87626307,2.059103 C8.76515134,2.01854561 9.14980144,2.00379146 10.825091,2 L13.1738932,2 L10.825091,2 Z M12.733046,3.80115495 L11.2659442,3.80115495 C9.25857953,3.80324073 8.90746344,3.81583469 7.95839674,3.85913648 C6.98335214,3.90359743 6.45383012,4.06651507 6.10143736,4.20347069 C5.63463704,4.38488726 5.30149746,4.60159471 4.95156594,4.95156594 C4.60159471,5.30149746 4.38488726,5.63463704 4.20347069,6.10143736 C4.06651507,6.45383012 3.90359743,6.98335214 3.85913648,7.95839674 C3.81583469,8.90746344 3.80324073,9.25857953 3.80115495,11.2659442 L3.80115495,12.733046 C3.80324073,14.7403818 3.81583469,15.0914978 3.85913648,16.0405646 C3.90359743,17.0156091 4.06651507,17.5451311 4.20347069,17.8975239 C4.38488726,18.3643242 4.60163441,18.6974638 4.95156594,19.0473953 C5.30149746,19.3973665 5.63463704,19.614074 6.10143736,19.7954906 C6.45383012,19.9324462 6.98335214,20.0953638 7.95839674,20.1398247 C9.0127962,20.1879378 9.32902474,20.1981401 11.9995005,20.1981401 C14.6699365,20.1981401 14.9862047,20.1879378 16.0405646,20.1398247 C17.0156091,20.0953638 17.5451311,19.9324462 17.8975239,19.7954906 C18.3643242,19.614074 18.6974638,19.3973665 19.0473953,19.0473953 C19.3973665,18.6974638 19.614074,18.3643242 19.7954906,17.8975239 C19.9324462,17.5451311 20.0953638,17.0156091 20.1398247,16.0405646 C20.1879378,14.986046 20.1981401,14.6697381 20.1981401,11.9995005 C20.1981401,9.32922322 20.1879378,9.0129153 20.1398247,7.95839674 C20.0953638,6.98335214 19.9324462,6.45383012 19.7954906,6.10143736 C19.614074,5.63463704 19.3973665,5.30149746 19.0473953,4.95156594 C18.6974638,4.60159471 18.3643242,4.38488726 17.8975239,4.20347069 C17.5451311,4.06651507 17.0156091,3.90359743 16.0405646,3.85913648 C15.0914978,3.81583469 14.7403818,3.80324073 12.733046,3.80115495 Z M11.9995,6.99920128 C14.7610764,6.99920128 16.99976,9.23788484 16.99976,11.9995 C16.99976,14.7610764 14.7610764,16.99976 11.9995,16.99976 C9.23788484,16.99976 6.99920128,14.7610764 6.99920128,11.9995 C6.99920128,9.23788484 9.23788484,6.99920128 11.9995,6.99920128 Z M11.9995,8.75368323 C10.2068679,8.75368323 8.75368323,10.2068679 8.75368323,11.9995 C8.75368323,13.7920934 10.2068679,15.245278 11.9995,15.245278 C13.7920934,15.245278 15.245278,13.7920934 15.245278,11.9995 C15.245278,10.2068679 13.7920934,8.75368323 11.9995,8.75368323 Z M17.4164293,5.33244149 C18.1068302,5.33244149 18.6665198,5.89213105 18.6665198,6.58253201 C18.6665198,7.27293296 18.1068302,7.83258117 17.4164293,7.83258117 C16.7260697,7.83258117 16.1663801,7.27293296 16.1663801,6.58253201 C16.1663801,5.89213105 16.7260697,5.33244149 17.4164293,5.33244149 Z" />
</svg>
</a>
{{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}
{{ partial "category.html" . }}
{{ partial "related.html" . }} {{ partial "related.html" . }}
{{ if .Params.twitter }} {{ if .Params.twitter }}
<div class="twitter--area"> <div class="twitter--area">
@ -110,16 +73,6 @@
{{ if .Params.story_id }} {{ if .Params.story_id }}
{{ partial "commentlist.html" . }} {{ partial "commentlist.html" . }}
{{ end }} {{ end }}
<br><h3 class="related--posts__title">评论</h3>
<div id="tcomment"></div>
<script src="https://cdn.staticfile.org/twikoo/1.6.32/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: 'https://t.loliko.cn', // 腾讯云环境填 envIdVercel 环境填地址https://xxx.vercel.app
el: '#tcomment',
})
</script>
</article> </article>
<!-- {{ if or .PrevPage .NextPage }} <!-- {{ if or .PrevPage .NextPage }}
<nav class="navigation post-navigation is-active"> <nav class="navigation post-navigation is-active">

View File

@ -8,8 +8,8 @@
</header> </header>
<div class="site--main"> <div class="site--main">
{{ range .Data.Pages }} {{ range .Data.Pages }}
{{ if eq .Type "memos" }} {{ if eq .Type "memo" }}
{{ partial "memos.html" . }} {{ partial "memo.html" . }}
{{ else }} {{ else }}
{{ partial "post.html" . }} {{ partial "post.html" . }}
{{ end }} {{ end }}

View File

@ -14,7 +14,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ $paginator := .Paginate (where .Pages "Type" "archives") }} {{ $paginator := .Paginate (where .Pages "Type" "story") }}
{{partial "pagination.html" .}} {{partial "pagination.html" .}}
</main> </main>
{{ end }} {{ end }}

View File

@ -0,0 +1,13 @@
{{ if .Params.categories }}
<div class="category--card__list">
{{ range (.GetTerms "categories") }}
<a href="{{ .RelPermalink }}" class="category--card">
<div class="category--card__image"><img src="{{ .Params.cover }}" /></div>
<div class="category--card__content">
<div class="category--card__title">{{ .LinkTitle }}</div>
<div class="category--card__description">{{ .Params.description }}</div>
</div>
</a>
{{ end }}
</div>
{{ end }}

View File

@ -11,8 +11,27 @@
</ol> </ol>
<nav class="commentnav u-textAlignCenter"></nav> <nav class="commentnav u-textAlignCenter"></nav>
<div id="respond" class="comment-respond"> <div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">发表回复 <small><a rel="nofollow"
id="cancel-comment-reply-link" href="/39#respond" style="display:none;">取消回复</a></small></h3>
<form method="post" id="commentform" class="comment-form" novalidate="">
<p class="comment-notes"><span id="email-notes">您的电子邮箱地址不会被公开。</span> <span
class="required-field-message">必填项已用<span class="required">*</span>标注</span></p>
<p class="comment-form-author"><label for="author">显示名称 <span class="required">*</span></label> <input
id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name"
required=""></p>
<p class="comment-form-email"><label for="email">电子邮箱地址 <span class="required">*</span></label> <input
id="email" name="email" type="email" value="" size="30" maxlength="100"
aria-describedby="email-notes" autocomplete="email" required=""></p>
<p class="comment-form-url"><label for="url">网站地址</label> <input id="url" name="url" type="url" value=""
size="30" maxlength="200" autocomplete="url"></p>
<p class="comment-form-comment"><label for="comment">评论 <span class="required">*</span></label>
<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required=""></textarea>
</p>
<p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="发表评论">
<input type="hidden" name="comment_post_ID" value="{{ .Params.story_id }}" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
</p>
</form>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,9 +0,0 @@
<h2>评论</h2>
<div id="tcomment"></div>
<script src="https://cdn.staticfile.org/twikoo/1.6.32/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: 'https://t.loliko.cn', // 腾讯云环境填 envIdVercel 环境填地址https://xxx.vercel.app
el: '#tcomment',
})
</script>

View File

@ -1,6 +1,12 @@
<footer class="site--footer"> <footer class="site--footer">
<div class="site--footer__content"> <div class="site--footer__content">
{{ if .Site.Params.footer_sns }}
<div class=site--footer__sns>
{{ partial "sns.html" . }}
</div>
{{ else }}
Made with 💗 Made with 💗
{{ end }}
<div class="copyright"> <div class="copyright">
{{ with .Site.Params.copyright }} {{ with .Site.Params.copyright }}
{{ . | markdownify }} {{ . | markdownify }}

View File

@ -0,0 +1,45 @@
{{ if .Site.Params.feed }}
<a href="{{ .Site.Params.feed }}" target="_blank">
<svg class="sns" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 17C12 14 10 12 7 12" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round" />
<path d="M17 17C17 11 13 7 7 7" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round" />
<path d="M7 17.01L7.01 16.9989" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
<path
d="M21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8Z"
stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.telegram }}
<a href="{{ .Site.Params.telegram }}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px">
<path
d="M 25.154297 3.984375 C 24.829241 3.998716 24.526384 4.0933979 24.259766 4.2011719 C 24.010014 4.3016357 23.055766 4.7109106 21.552734 5.3554688 C 20.048394 6.0005882 18.056479 6.855779 15.931641 7.7695312 C 11.681964 9.5970359 6.9042108 11.654169 4.4570312 12.707031 C 4.3650097 12.746607 4.0439208 12.849183 3.703125 13.115234 C 3.3623292 13.381286 3 13.932585 3 14.546875 C 3 15.042215 3.2360676 15.534319 3.5332031 15.828125 C 3.8303386 16.121931 4.144747 16.267067 4.4140625 16.376953 C 5.3912284 16.775666 8.4218473 18.015862 8.9941406 18.25 C 9.195546 18.866983 10.29249 22.222526 10.546875 23.044922 C 10.714568 23.587626 10.874198 23.927519 11.082031 24.197266 C 11.185948 24.332139 11.306743 24.45034 11.453125 24.542969 C 11.511635 24.579989 11.575789 24.608506 11.640625 24.634766 L 11.644531 24.636719 C 11.659471 24.642719 11.67235 24.652903 11.6875 24.658203 C 11.716082 24.668202 11.735202 24.669403 11.773438 24.677734 C 11.925762 24.726927 12.079549 24.757812 12.216797 24.757812 C 12.80196 24.757814 13.160156 24.435547 13.160156 24.435547 L 13.181641 24.419922 L 16.191406 21.816406 L 19.841797 25.269531 C 19.893193 25.342209 20.372542 26 21.429688 26 C 22.057386 26 22.555319 25.685026 22.875 25.349609 C 23.194681 25.014192 23.393848 24.661807 23.478516 24.21875 L 23.478516 24.216797 C 23.557706 23.798129 26.921875 6.5273437 26.921875 6.5273438 L 26.916016 6.5507812 C 27.014496 6.1012683 27.040303 5.6826405 26.931641 5.2695312 C 26.822973 4.8564222 26.536648 4.4608905 26.181641 4.2480469 C 25.826669 4.0352506 25.479353 3.9700339 25.154297 3.984375 z M 24.966797 6.0742188 C 24.961997 6.1034038 24.970391 6.0887279 24.962891 6.1230469 L 24.960938 6.1347656 L 24.958984 6.1464844 C 24.958984 6.1464844 21.636486 23.196371 21.513672 23.845703 C 21.522658 23.796665 21.481573 23.894167 21.439453 23.953125 C 21.379901 23.91208 21.257812 23.859375 21.257812 23.859375 L 21.238281 23.837891 L 16.251953 19.121094 L 12.726562 22.167969 L 13.775391 17.96875 C 13.775391 17.96875 20.331562 11.182109 20.726562 10.787109 C 21.044563 10.471109 21.111328 10.360953 21.111328 10.251953 C 21.111328 10.105953 21.035234 10 20.865234 10 C 20.712234 10 20.506484 10.14875 20.396484 10.21875 C 18.963383 11.132295 12.671823 14.799141 9.8515625 16.439453 C 9.4033769 16.256034 6.2896636 14.981472 5.234375 14.550781 C 5.242365 14.547281 5.2397349 14.548522 5.2480469 14.544922 C 7.6958673 13.491784 12.47163 11.434667 16.720703 9.6074219 C 18.84524 8.6937992 20.838669 7.8379587 22.341797 7.1933594 C 23.821781 6.5586849 24.850125 6.1218894 24.966797 6.0742188 z" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="{{ .Site.Params.twitter }}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px">
<path
d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.instagram }}
<a href="{{ .Site.Params.instagram }}" target="_blank">
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.825091,2 L13.1738932,2 C14.8491598,2.00379146 15.2338099,2.01854561 16.1226982,2.059103 C17.187141,2.10765278 17.9141174,2.27672349 18.5502266,2.52395815 C19.2078518,2.77948955 19.7655588,3.12144192 20.3215589,3.67740233 C20.8775194,4.23340244 21.2194717,4.79110953 21.4750428,5.44873467 C21.7222377,6.08484389 21.8913085,6.81182019 21.9398582,7.87626307 C21.9869049,8.90737346 21.9992305,9.25998097 22,11.7357029 L22,12.2632942 C21.9992305,14.7389803 21.9869049,15.0915878 21.9398582,16.1226982 C21.8913085,17.187141 21.7222377,17.9141174 21.4750428,18.5502266 C21.2194717,19.2078518 20.8775194,19.7655588 20.3215589,20.3215589 C19.7655588,20.8775194 19.2078518,21.2194717 18.5502266,21.4750428 C17.9141174,21.7222377 17.187141,21.8913085 16.1226982,21.9398582 C15.0915878,21.9869049 14.7389803,21.9992305 12.2632942,22 L11.7357029,22 C9.25998097,21.9992305 8.90737346,21.9869049 7.87626307,21.9398582 C6.81182019,21.8913085 6.08484389,21.7222377 5.44873467,21.4750428 C4.79110953,21.2194717 4.23340244,20.8775194 3.67740233,20.3215589 C3.12144192,19.7655588 2.77948955,19.2078518 2.52395815,18.5502266 C2.27672349,17.9141174 2.10765278,17.187141 2.059103,16.1226982 C2.01854561,15.2338099 2.00379146,14.8491598 2,13.1738932 L2,10.825091 C2.00379146,9.14980144 2.01854561,8.76515134 2.059103,7.87626307 C2.10765278,6.81182019 2.27672349,6.08484389 2.52395815,5.44873467 C2.77948955,4.79110953 3.12144192,4.23340244 3.67740233,3.67740233 C4.23340244,3.12144192 4.79110953,2.77948955 5.44873467,2.52395815 C6.08484389,2.27672349 6.81182019,2.10765278 7.87626307,2.059103 C8.76515134,2.01854561 9.14980144,2.00379146 10.825091,2 L13.1738932,2 L10.825091,2 Z M12.733046,3.80115495 L11.2659442,3.80115495 C9.25857953,3.80324073 8.90746344,3.81583469 7.95839674,3.85913648 C6.98335214,3.90359743 6.45383012,4.06651507 6.10143736,4.20347069 C5.63463704,4.38488726 5.30149746,4.60159471 4.95156594,4.95156594 C4.60159471,5.30149746 4.38488726,5.63463704 4.20347069,6.10143736 C4.06651507,6.45383012 3.90359743,6.98335214 3.85913648,7.95839674 C3.81583469,8.90746344 3.80324073,9.25857953 3.80115495,11.2659442 L3.80115495,12.733046 C3.80324073,14.7403818 3.81583469,15.0914978 3.85913648,16.0405646 C3.90359743,17.0156091 4.06651507,17.5451311 4.20347069,17.8975239 C4.38488726,18.3643242 4.60163441,18.6974638 4.95156594,19.0473953 C5.30149746,19.3973665 5.63463704,19.614074 6.10143736,19.7954906 C6.45383012,19.9324462 6.98335214,20.0953638 7.95839674,20.1398247 C9.0127962,20.1879378 9.32902474,20.1981401 11.9995005,20.1981401 C14.6699365,20.1981401 14.9862047,20.1879378 16.0405646,20.1398247 C17.0156091,20.0953638 17.5451311,19.9324462 17.8975239,19.7954906 C18.3643242,19.614074 18.6974638,19.3973665 19.0473953,19.0473953 C19.3973665,18.6974638 19.614074,18.3643242 19.7954906,17.8975239 C19.9324462,17.5451311 20.0953638,17.0156091 20.1398247,16.0405646 C20.1879378,14.986046 20.1981401,14.6697381 20.1981401,11.9995005 C20.1981401,9.32922322 20.1879378,9.0129153 20.1398247,7.95839674 C20.0953638,6.98335214 19.9324462,6.45383012 19.7954906,6.10143736 C19.614074,5.63463704 19.3973665,5.30149746 19.0473953,4.95156594 C18.6974638,4.60159471 18.3643242,4.38488726 17.8975239,4.20347069 C17.5451311,4.06651507 17.0156091,3.90359743 16.0405646,3.85913648 C15.0914978,3.81583469 14.7403818,3.80324073 12.733046,3.80115495 Z M11.9995,6.99920128 C14.7610764,6.99920128 16.99976,9.23788484 16.99976,11.9995 C16.99976,14.7610764 14.7610764,16.99976 11.9995,16.99976 C9.23788484,16.99976 6.99920128,14.7610764 6.99920128,11.9995 C6.99920128,9.23788484 9.23788484,6.99920128 11.9995,6.99920128 Z M11.9995,8.75368323 C10.2068679,8.75368323 8.75368323,10.2068679 8.75368323,11.9995 C8.75368323,13.7920934 10.2068679,15.245278 11.9995,15.245278 C13.7920934,15.245278 15.245278,13.7920934 15.245278,11.9995 C15.245278,10.2068679 13.7920934,8.75368323 11.9995,8.75368323 Z M17.4164293,5.33244149 C18.1068302,5.33244149 18.6665198,5.89213105 18.6665198,6.58253201 C18.6665198,7.27293296 18.1068302,7.83258117 17.4164293,7.83258117 C16.7260697,7.83258117 16.1663801,7.27293296 16.1663801,6.58253201 C16.1663801,5.89213105 16.7260697,5.33244149 17.4164293,5.33244149 Z" />
</svg>
</a>
{{ end }}
{{ if .Site.Params.github }}
<a href="{{ .Site.Params.github }}" target="_blank">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M20.9992 5.95846C21.0087 6.565 20.9333 7.32649 20.8658 7.8807C20.8395 8.09686 20.8037 8.27676 20.7653 8.42453C21.6227 10.01 22 11.9174 22 14C22 16.4684 20.8127 18.501 18.9638 19.8871C17.1319 21.2605 14.6606 22 12 22C9.33939 22 6.86809 21.2605 5.0362 19.8871C3.18727 18.501 2 16.4684 2 14C2 11.9174 2.37732 10.01 3.23472 8.42452C3.19631 8.27676 3.16055 8.09685 3.13422 7.8807C3.06673 7.32649 2.99133 6.565 3.00081 5.95846C3.01149 5.27506 3.10082 4.5917 3.19988 3.91379C3.24569 3.60028 3.31843 3.30547 3.65883 3.11917C4.00655 2.92886 4.37274 2.99981 4.73398 3.1021C5.95247 3.44713 7.09487 3.93108 8.16803 4.51287C9.2995 4.17287 10.5783 4 12 4C13.4217 4 14.7005 4.17287 15.832 4.51287C16.9051 3.93108 18.0475 3.44713 19.266 3.1021C19.6273 2.99981 19.9935 2.92886 20.3412 3.11917C20.6816 3.30547 20.7543 3.60028 20.8001 3.91379C20.8992 4.5917 20.9885 5.27506 20.9992 5.95846ZM20 14C20 12.3128 19.6122 10 17.5 10C16.5478 10 15.6474 10.2502 14.7474 10.5004C13.8482 10.7502 12.9495 11 12 11C11.0505 11 10.1518 10.7502 9.25263 10.5004C8.35261 10.2502 7.45216 10 6.5 10C4.39379 10 4 12.3197 4 14C4 15.7636 4.82745 17.231 6.23588 18.2869C7.66135 19.3556 9.69005 20 12 20C14.3099 20 16.3386 19.3555 17.7641 18.2869C19.1726 17.231 20 15.7636 20 14ZM10 14.5C10 15.8807 9.32843 17 8.5 17C7.67157 17 7 15.8807 7 14.5C7 13.1193 7.67157 12 8.5 12C9.32843 12 10 13.1193 10 14.5ZM15.5 17C16.3284 17 17 15.8807 17 14.5C17 13.1193 16.3284 12 15.5 12C14.6716 12 14 13.1193 14 14.5C14 15.8807 14.6716 17 15.5 17Z"
fill="#000000" />
</svg>
</a>
{{ end }}