Skip to content

Commit

Permalink
完善config,friend-links
Browse files Browse the repository at this point in the history
  • Loading branch information
crack-dawn committed Jul 22, 2024
1 parent 3bd7749 commit 54883c8
Show file tree
Hide file tree
Showing 419 changed files with 128,004 additions and 218 deletions.
18 changes: 10 additions & 8 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,30 @@ subtitle:
date: {{ .Date }}
slug: {{ substr .File.UniqueID 0 7 }}
draft: false
comment: false
comment: true
summary:
description:
keywords:
password:

message: # 密码输入框预设提示
password: # 解锁密码

layout: # 布局归类:posts, archives, tags, categories等,文件分散在不同文件夹需要注明
archives:
tags: ['draft']
categories: ['draft']

weight: 0
message:
repost:
enable: true
url:

author:
name:
link:
email:
avatar:
license:
repost:
enable: true
url:

weight: 0
hiddenFromHomePage: false
hiddenFromSearch: false
hiddenFromRss: false
Expand Down
35 changes: 35 additions & 0 deletions archetypes/friends.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: {{ replace .TranslationBaseName "-" " " | title }}
subtitle:
layout: friends
date: {{ .Date }}
description: "{{ .Site.Params.author.name }}'s friends"
keywords:
- 'Hugo FixIt'
- 'friends template'
- 友情链接
comment: true
---

<!-- When you set data `friends.yml` in `yourProject/data/` directory, it will be automatically loaded here. -->

---

<!-- You can define additional content below for this page. -->

## Base info

```yaml
- nickname: Lruihao
avatar: https://lruihao.cn/images/avatar.jpg
url: https://lruihao.cn
description: Lruihao's Note
```
## Friendly Reminder
{{< admonition info "Notice" true >}}
1. If you want to exchange link, please leave a comment in the above format. (personal non-commercial blogs / websites only)
2. :(fa-solid fa-exclamation-triangle): Website failure, stop maintenance and improper content may be unlinked!
3. Those websites that do not respect other people's labor achievements, reprint without source, or malicious acts, please do not come to exchange.
47 changes: 0 additions & 47 deletions archetypes/posts.md

This file was deleted.

18 changes: 12 additions & 6 deletions config/_default/hugo.toml → config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# title = "A CTGUer's Hugo Static Site" # 网站主标题
baseURL = 'https://crack-dawn.github.io/CTGU-Hugo-Blog.io'# 网站根目录
languageCode = 'en-us'

defaultContentLanguage = "zh-cn" # 默认语言
theme = ["FixIt"]
theme = ["FixIt","hugo-embed-pdf-shortcode"]


# 是否开启短代码
enableInlineShortcodes = true

# 是否开启评论功能
enableComments = true

# whether to use robots.txt
# 是否使用 robots.txt
enableRobotsTXT = true

# whether to use git commit log
# 是否使用 git 信息
enableGitInfo = true
Expand All @@ -21,8 +28,7 @@ enableEmoji = true
# 创建新内容时使用的编辑器
newContentEditor = "code"

# hugo --gc -e production


## 其他主题插件 设置项
enableInlineShortcodes = true
## development environment compile&build
# hugo serve -D
## production environment compile&build
# hugo serve -D -e production --gc
2 changes: 1 addition & 1 deletion config/_default/menu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标
post = ""
name = "所有文章"
url = "/posts/"
url = "/archives/"
title = ""
weight = 1
[[main]]
Expand Down
11 changes: 5 additions & 6 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,19 @@
title = "显而不易见" # 主页显示的网站标题 (支持 HTML 格式)
subtitle = "追求星辰大海,还是沉湎虚拟现实?" # 主页显示的网站副标题
typeit = true # 是否为副标题显示打字机动画
social = false # 是否显示社交账号
social = true # 是否显示社交账号
disclaimer = "" # 免责声明 (支持 HTML 格式)
[home.posts]# 主页文章列表
enable = true
paginate = 10 # 主页每页显示文章数量
# 作者的社交信息设置
[social]
GitHub = ""
Bilibili = ""
QQ = ""
GitHub = true
Bilibili = true
QQ = true
QQGroup = ""
Discord = ""
Email = ""
RSS = true


# 更改文章页面配置
Expand All @@ -123,7 +122,7 @@
# FixIt 0.3.0 | 新增 是否在相关文章中隐藏一篇文章
hiddenFromRelated = false
# 是否使用 twemoji
twemoji = false
twemoji = true
# 是否使用 lightgallery
# FixIt 0.2.18 | 更改 如果设为 "force",文章中的图片将强制按照画廊形式呈现
lightgallery = false
Expand Down
37 changes: 37 additions & 0 deletions content/friends/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Friends Links
subtitle:
layout: friends
date: 2024-07-22T17:41:03+08:00
description: "crack-dawn's friends"
keywords:
- 'Hugo FixIt'
- 'friends template'
- 友情链接
comment: true
---

<!-- When you set data `friends.yml` in `yourProject/data/` directory, it will be automatically loaded here. -->

---

<!-- You can define additional content below for this page. -->

## Base info

```yaml
- nickname: Lruihao
avatar: https://lruihao.cn/images/avatar.jpg
url: https://lruihao.cn
description: Lruihao's Note
```
## Friendly Reminder
{{< admonition info "Notice" true >}}
1. If you want to exchange link, please leave a comment in the above format. (personal non-commercial blogs / websites only)
2. :(fa-solid fa-exclamation-triangle): Website failure, stop maintenance and improper content may be unlinked!
3. Those websites that do not respect other people's labor achievements, reprint without source, or malicious acts, please do not come to exchange.
{{< /admonition >}}
37 changes: 34 additions & 3 deletions content/posts/hugo-learn/2.hugo学习-插入图片-资源存放.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 2.hugo学习 插入图片 资源存放
title: 2.hugo学习-功能拓展
subtitle:
date: 2024-07-21T14:35:04+08:00
slug: f30d7fd
Expand All @@ -12,7 +12,7 @@ password:

archives:
tags: ['draft']
categories: ['draft']
categories: ['hugo学习']

weight: 0
message:
Expand Down Expand Up @@ -45,9 +45,40 @@ lightgallery: true
---

<!--more-->



## hugo如何插入评论系统
> 主要为hugo Fixit主题下的操作
+ vercel网址: https://vercel.com/
+ vercel部署waline教程:https://waline.js.org/guide/get-started/
+ vercel部署waline评论管理后台:[delpoy](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwalinejs%2Fwaline%2Ftree%2Fmain%2Fexample)
>--
+ 请参考[affectalways的博客](https://affectalways.github.io/hugo_comment/)
+ 请参考[mostima的博客](https://mostima.blog/blog/waline-comment-system/#%E8%AF%84%E8%AE%BA%E7%AE%A1%E7%90%86%E5%90%8E%E5%8F%B0)
+ 请参考[waline.js.org](https://waline.js.org/guide/get-started/)
+ 请参考[SHU_Fly网站源码](https://github.com/shuosc/fly/)
+ 请参考[SHU_Fly网站源码](https://github.com/shuosc/fly/)




### waline评论管理
评论管理后台地址为`serverURL`/ui/register , 首个注册的用户会被设为管理员账户, 之后注册的用户则为普通用户

+ 我的 `serverURL`为: https://walinecomment-crack-dawns-projects.vercel.app/
+ 我的`评论管理后台地址`为: https://walinecomment-crack-dawns-projects.vercel.app/ui



## hugo如何添加友情链接页面
参考文章
+ [hugo添加友链页面(FixIt主题)](https://fixit.lruihao.cn/documentation/content-management/friend-links/)
+ [ Hugo添加友链卡片及页面(Lovety主题)作者:stilig](https://stilig.me/posts/add-friend/)



## 惊艳的博客面板
+ [qcqx的博客 (Hexo)](https://www.qcqx.cn/)
+ [lanzlz的博客](https://www.lanzlz.cn/)
+ https://www.zair.top/links/
+
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ repost:
---
快速建立一个 hugo项目,请参考
[go Hugo quick start](https://gohugo.io/getting-started/quick-start/)<!--more-->
https://www.zair.top/links/
15 changes: 15 additions & 0 deletions data/friends.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 朋友/站点信息例子
- nickname: Lruihao
avatar: https://lruihao.cn/images/avatar.jpg
url: https://lruihao.cn
description: Lruihao's Note

- nickname: Mostima
avatar: "https://mostima.blog/img/avatar.jpg"
url: "https://mostima.blog/blog/"
description: 悟以往之不谏,知来者之可追

- nickname: 逐水寻源
avatar: https://www.zair.top/img/logo.png # 您的头像
url: https://www.zair.top/
description: 分享我的学习笔记、经验与有趣的小玩意.
10 changes: 6 additions & 4 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ul class="menu"><li class="menu-item">
<a
class="menu-link"
href="/CTGU-Hugo-Blog.io/posts/"
href="/CTGU-Hugo-Blog.io/archives/"


><i class='fa-solid fa-archive fa-fw fa-sm'></i> 所有文章</a></li><li class="menu-item">
Expand Down Expand Up @@ -87,7 +87,7 @@
class="menu-item"
><a
class="menu-link"
href="/CTGU-Hugo-Blog.io/posts/"
href="/CTGU-Hugo-Blog.io/archives/"


><i class='fa-solid fa-archive fa-fw fa-sm'></i> 所有文章</a></li><li
Expand Down Expand Up @@ -152,11 +152,13 @@ <h1 id="error-emoji"></h1>
<div class="footer-container"><div class="footer-line powered"><a href="https://gohugo.io/" target="_blank" rel="external nofollow noopener noreferrer" title="Hugo 0.128.2"><img class="hugo-icon" src="/CTGU-Hugo-Blog.io/images/hugo.min.svg" alt="Hugo logo" /> Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/hugo-fixit/FixIt" target="_blank" rel="external" title="FixIt v0.3.8"><img class="fixit-icon" src="/CTGU-Hugo-Blog.io/images/fixit.min.svg" alt="FixIt logo" /> FixIt</a>
</div><div class="footer-line copyright" itemscope itemtype="http://schema.org/CreativeWork"><i class="fa-regular fa-copyright fa-fw" aria-hidden="true"></i>
<span itemprop="copyrightYear">2024</span><span class="author" itemprop="copyrightHolder">
<a href="https://github.com/crack-dawn/"target="_blank" rel="external nofollow noopener noreferrer">crack-dawn</a></span></div></div>
<a href="https://github.com/crack-dawn/"target="_blank" rel="external nofollow noopener noreferrer">crack-dawn</a></span></div><div class="footer-line visitor">
<span id="busuanzi_container_site_uv" title='总访客数'><i class="fa-regular fa-user fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span></span><span id="busuanzi_container_site_pv" class="footer-divider" title='总访问量'><i class="fa-regular fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span></span>
</div></div>
</footer></div><div class="widgets"><div class="fixed-buttons animate__faster d-none"><div class="fixed-button back-to-top" role="button" aria-label="回到顶部"><i class="fa-solid fa-arrow-up fa-fw" aria-hidden="true"></i><span class="variant-numeric">0%</span>
</div><div class="fixed-button view-comments d-none" role="button" aria-label="查看评论"><i class="fa-solid fa-comment fa-fw" aria-hidden="true"></i></div></div><div id="mask"></div><div class="reading-progress-bar" style="left: 0;bottom: 0;width: calc(100% - var(--progress));"></div><noscript>
<div class="noscript-warning">该网站在启用 JavaScript 的情况下效果最佳。</div>
</noscript>
</div><link rel="preload" href="/CTGU-Hugo-Blog.io/lib/katex/katex.min.css" as="style" onload="this.removeAttribute('onload');this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/katex/katex.min.css"></noscript><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/cookieconsent/cookieconsent.min.css"><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/pace/themes/blue/pace-theme-minimal.css"><script src="/CTGU-Hugo-Blog.io/lib/sharer/sharer.min.js" async defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/katex.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/auto-render.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/copy-tex.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/mhchem.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/cookieconsent/cookieconsent.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/cell-watermark/watermark.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/pace/pace.min.js" async defer></script><script>window.config={"code":{"copyTitle":"复制到剪贴板","editLockTitle":"锁定可编辑代码块","editUnLockTitle":"解锁可编辑代码块","editable":true,"maxShownLines":15},"cookieconsent":{"content":{"dismiss":"同意","link":"了解更多","message":"本网站使用 Cookies 来改善您的浏览体验。"},"enable":true,"palette":{"button":{"background":"#f0f0f0"},"popup":{"background":"#1aa3ff"}},"theme":"edgeless"},"math":{"delimiters":[{"display":true,"left":"$$","right":"$$"},{"display":true,"left":"\\[","right":"\\]"},{"display":true,"left":"\\begin{equation}","right":"\\end{equation}"},{"display":true,"left":"\\begin{equation*}","right":"\\end{equation*}"},{"display":true,"left":"\\begin{align}","right":"\\end{align}"},{"display":true,"left":"\\begin{align*}","right":"\\end{align*}"},{"display":true,"left":"\\begin{alignat}","right":"\\end{alignat}"},{"display":true,"left":"\\begin{alignat*}","right":"\\end{alignat*}"},{"display":true,"left":"\\begin{gather}","right":"\\end{gather}"},{"display":true,"left":"\\begin{CD}","right":"\\end{CD}"},{"display":false,"left":"$","right":"$"},{"display":false,"left":"\\(","right":"\\)"}],"strict":false},"version":"v0.3.8","watermark":{"appendto":".wrapper\u003emain","colspacing":30,"content":"皂荚","enable":true,"fontfamily":"inherit","fontsize":0.85,"height":20,"opacity":0.1,"rotate":15,"rowspacing":60,"width":150}};</script><script src="/CTGU-Hugo-Blog.io/js/theme.min.js" defer></script></body>
<noscript><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/katex/katex.min.css"></noscript><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/cookieconsent/cookieconsent.min.css"><link rel="stylesheet" href="/CTGU-Hugo-Blog.io/lib/pace/themes/blue/pace-theme-minimal.css"><script src="/CTGU-Hugo-Blog.io/lib/twemoji/twemoji.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/sharer/sharer.min.js" async defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/katex.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/auto-render.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/copy-tex.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/katex/mhchem.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/cookieconsent/cookieconsent.min.js" defer></script><script src="/CTGU-Hugo-Blog.io/lib/cell-watermark/watermark.min.js" defer></script><script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async defer></script><script src="/CTGU-Hugo-Blog.io/lib/pace/pace.min.js" async defer></script><script>window.config={"code":{"copyTitle":"复制到剪贴板","editLockTitle":"锁定可编辑代码块","editUnLockTitle":"解锁可编辑代码块","editable":true,"maxShownLines":15},"cookieconsent":{"content":{"dismiss":"同意","link":"了解更多","message":"本网站使用 Cookies 来改善您的浏览体验。"},"enable":true,"palette":{"button":{"background":"#f0f0f0"},"popup":{"background":"#1aa3ff"}},"theme":"edgeless"},"math":{"delimiters":[{"display":true,"left":"$$","right":"$$"},{"display":true,"left":"\\[","right":"\\]"},{"display":true,"left":"\\begin{equation}","right":"\\end{equation}"},{"display":true,"left":"\\begin{equation*}","right":"\\end{equation*}"},{"display":true,"left":"\\begin{align}","right":"\\end{align}"},{"display":true,"left":"\\begin{align*}","right":"\\end{align*}"},{"display":true,"left":"\\begin{alignat}","right":"\\end{alignat}"},{"display":true,"left":"\\begin{alignat*}","right":"\\end{alignat*}"},{"display":true,"left":"\\begin{gather}","right":"\\end{gather}"},{"display":true,"left":"\\begin{CD}","right":"\\end{CD}"},{"display":false,"left":"$","right":"$"},{"display":false,"left":"\\(","right":"\\)"}],"strict":false},"twemoji":true,"version":"v0.3.8","watermark":{"appendto":".wrapper\u003emain","colspacing":30,"content":"皂荚","enable":true,"fontfamily":"inherit","fontsize":0.85,"height":20,"opacity":0.1,"rotate":15,"rowspacing":60,"width":150}};</script><script src="/CTGU-Hugo-Blog.io/js/theme.min.js" defer></script></body>
</html>
Loading

0 comments on commit 54883c8

Please sign in to comment.