Skip to content

Commit

Permalink
add giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
WncFht committed Nov 10, 2024
1 parent a15cb89 commit 6b24355
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 74 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
# - name: Install Dart Sass
# run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
15 changes: 15 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,27 @@ languages:
pageRef: about/
weight: 21
# https://github.com/adityatelange/hugo-PaperMod/wiki/Features#search-page

outputs:
home:
- HTML # 生成的静态页面
- RSS # 这个其实无所谓
- JSON # necessary for search, 这里的配置修改好之后,一定要重新生成一下
params:
giscus:
repo: "WncFht/WncFht.github.io"
repoId: "R_kgDONNHiog"
category: "General"
categoryId: "DIC_kwDONNHios4CkJLc"
mapping: "pathname"
strict: "0"
reactionsEnabled: "1"
emitMetadata: "0"
inputPosition: "bottom"
lightTheme: "light"
darkTheme: "dark"
lang: "zh-CN"
crossorigin: "anonymous"
assets:
disableHLJS: true
# 搜索
Expand Down
14 changes: 7 additions & 7 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/categories/</link>
<link>http://localhost:1313/categories/</link>
<description>Recent content in Categories on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>通用技术</title>
<link>https://WncFht.github.io/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</link>
<link>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</guid>
<guid>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</guid>
<description></description>
</item>
</channel>
Expand Down
16 changes: 8 additions & 8 deletions public/categories/通用技术/index.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>通用技术 on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</link>
<link>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</link>
<description>Recent content in 通用技术 on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>https://WncFht.github.io/posts/test/</link>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
<guid>http://localhost:1313/posts/test/</guid>
<description>nihao</description>
</item>
</channel>
</rss>
34 changes: 24 additions & 10 deletions public/index.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/</link>
<link>http://localhost:1313/</link>
<description>Recent content on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>https://WncFht.github.io/posts/test/</link>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
<guid>http://localhost:1313/posts/test/</guid>
<description>nihao</description>
</item>
<item>
<title>关于</title>
<link>https://WncFht.github.io/about/</link>
<link>http://localhost:1313/about/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://WncFht.github.io/about/</guid>
<guid>http://localhost:1313/about/</guid>
<description>about</description>
</item>
<item>
<title>归档</title>
<link>http://localhost:1313/archives/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/archives/</guid>
<description>archives</description>
</item>
<item>
<title>搜索</title>
<link>http://localhost:1313/search/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/search/</guid>
<description>search</description>
</item>
</channel>
</rss>
16 changes: 8 additions & 8 deletions public/posts/index.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/posts/</link>
<link>http://localhost:1313/posts/</link>
<description>Recent content in Posts on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/posts/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>https://WncFht.github.io/posts/test/</link>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
<guid>http://localhost:1313/posts/test/</guid>
<description>nihao</description>
</item>
</channel>
</rss>
4 changes: 1 addition & 3 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
User-agent: *
Disallow:
Sitemap: https://WncFht.github.io/sitemap.xml
User-agent: *
22 changes: 11 additions & 11 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://WncFht.github.io/tags/bilibili/</loc>
<loc>http://localhost:1313/tags/bilibili/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/categories/</loc>
<loc>http://localhost:1313/categories/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/posts/test/</loc>
<loc>http://localhost:1313/posts/test/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/posts/</loc>
<loc>http://localhost:1313/posts/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/tags/</loc>
<loc>http://localhost:1313/tags/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/</loc>
<loc>http://localhost:1313/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</loc>
<loc>http://localhost:1313/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</loc>
<loc>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</loc>
<lastmod>2024-08-04T03:25:53+08:00</lastmod>
</url><url>
<loc>https://WncFht.github.io/about/</loc>
<loc>http://localhost:1313/about/</loc>
</url><url>
<loc>https://WncFht.github.io/archives/</loc>
<loc>http://localhost:1313/archives/</loc>
</url><url>
<loc>https://WncFht.github.io/search/</loc>
<loc>http://localhost:1313/search/</loc>
</url>
</urlset>
16 changes: 8 additions & 8 deletions public/tags/bilibili/index.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Bilibili on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/tags/bilibili/</link>
<link>http://localhost:1313/tags/bilibili/</link>
<description>Recent content in Bilibili on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/tags/bilibili/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/tags/bilibili/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>https://WncFht.github.io/posts/test/</link>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
<guid>http://localhost:1313/posts/test/</guid>
<description>nihao</description>
</item>
</channel>
</rss>
18 changes: 9 additions & 9 deletions public/tags/index.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tags on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/tags/</link>
<link>http://localhost:1313/tags/</link>
<description>Recent content in Tags on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/tags/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Bilibili</title>
<link>https://WncFht.github.io/tags/bilibili/</link>
<link>http://localhost:1313/tags/bilibili/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/tags/bilibili/</guid>
<guid>http://localhost:1313/tags/bilibili/</guid>
<description></description>
</item>
<item>
<title>博客搭建</title>
<link>https://WncFht.github.io/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</link>
<link>http://localhost:1313/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</guid>
<guid>http://localhost:1313/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</guid>
<description></description>
</item>
</channel>
Expand Down
16 changes: 8 additions & 8 deletions public/tags/博客搭建/index.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>博客搭建 on WncFht&#39;s Blog</title>
<link>https://WncFht.github.io/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</link>
<link>http://localhost:1313/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/</link>
<description>Recent content in 博客搭建 on WncFht&#39;s Blog</description>
<generator>Hugo -- 0.138.0</generator>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<copyright>[©2024 WncFht&#39;s Blog](https://WncFht.github.io/)</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="https://WncFht.github.io/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="http://localhost:1313/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>https://WncFht.github.io/posts/test/</link>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>https://WncFht.github.io/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
<guid>http://localhost:1313/posts/test/</guid>
<description>nihao</description>
</item>
</channel>
</rss>

0 comments on commit 6b24355

Please sign in to comment.