Skip to content

Commit

Permalink
modify hugo.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
WncFht committed Nov 13, 2024
1 parent f5d3964 commit bcb5ccb
Show file tree
Hide file tree
Showing 25 changed files with 316 additions and 126 deletions.
1 change: 0 additions & 1 deletion content/index.md

This file was deleted.

7 changes: 7 additions & 0 deletions content/posts/test2.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
---
title : 'test2'
date : 2024-08-05T03:25:53+08:00
categories : ["通用技术"]
tags : ["博客搭建", "Bilibili"]
---

nihao
46 changes: 29 additions & 17 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,18 @@ outputs:
- JSON # necessary for search, 这里的配置修改好之后,一定要重新生成一下

params:
# 代码块功能
title: "xxx's blog" # 首页标题
description: "xxx" # 页面描述
keywords: [Blog, xxx] # 首页的关键词
author: xxx # 文章中默认显示的作者名字
DateFormat: "2006-01-02" # 将时间格式修改为国内常用格式
showtoc: true # 在每篇文章开头显示目录
# 代码块功能
ShowMacDots: true # Mac色块
ShowCodeLang: true # 语言显示
ShowExpandButton: true # 代码块折叠
ShowCodeCopyButtons: true # 代码块复制按钮
codeMaxHeight: "100px" # 代码块最大折叠高度
# 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
# 搜索
fuseOpts:
# DateFormat: "2006-01-02" # 日期格式化
Expand Down Expand Up @@ -98,3 +88,25 @@ markup:
# style: "github-dark"
# style: monokai

profileMode:
enabled: true # needs to be explicitly set
title: "xxx's blog"
subtitle: "This is subtitle"
imageUrl: "<img location>"
imageWidth: 120
imageHeight: 120
imageTitle: my image
buttons:
- name: Posts
url: posts
- name: Tags
url: tags
homeInfoParams:
Title: "xxx"
Content: xxx

socialIcons:
- name: github
url: "https://github.com/WncFht" # 个人Github地址
- name: email
url: "mailto://[email protected]" # 个人邮箱
10 changes: 5 additions & 5 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="robots" content="noindex, nofollow">
<title>404 Page not found | WncFht&#39;s Blog</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="description" content="xxx">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/404.html">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -104,7 +104,7 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="归档">
<a href="http://localhost:1313/archives/" title="归档">
<span>归档</span>
</a>
</li>
Expand All @@ -114,12 +114,12 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="搜索">
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
</a>
</li>
<li>
<a href="http://localhost:1313/" title="关于">
<a href="http://localhost:1313/about/" title="关于">
<span>关于</span>
</a>
</li>
Expand Down
7 changes: 1 addition & 6 deletions public/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>关于 | WncFht&#39;s Blog</title>
<meta name="keywords" content="">
<meta name="description" content="about">
<meta name="author" content="">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/about/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -113,11 +113,6 @@
<span>分类</span>
</a>
</li>
<li>
<a href="http://localhost:1313/tags/" title="标签">
<span>标签</span>
</a>
</li>
<li>
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
Expand Down
19 changes: 10 additions & 9 deletions public/archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>归档 | WncFht&#39;s Blog</title>
<meta name="keywords" content="">
<meta name="description" content="archives">
<meta name="author" content="">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/archives/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -113,11 +113,6 @@
<span>分类</span>
</a>
</li>
<li>
<a href="http://localhost:1313/tags/" title="标签">
<span>标签</span>
</a>
</li>
<li>
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
Expand All @@ -141,18 +136,24 @@ <h1>
<div class="archive-year">
<h2 class="archive-year-header" id="2024">
<a class="archive-header-link" href="#2024">2024</a>
<sup class="archive-count">&nbsp;1</sup>
<sup class="archive-count">&nbsp;2</sup>
</h2>
<div class="archive-month">
<h3 class="archive-month-header" id="2024-八月">
<a class="archive-header-link" href="#2024-%e5%85%ab%e6%9c%88">八月</a>
<sup class="archive-count">&nbsp;1</sup>
<sup class="archive-count">&nbsp;2</sup>
</h3>
<div class="archive-posts">
<div class="archive-entry">
<h3 class="archive-entry-title entry-hint-parent">test2
</h3>
<div class="archive-meta"><span title='2024-08-05 03:25:53 +0800 CST'>2024-08-05</span>&nbsp;·&nbsp;xxx</div>
<a class="entry-link" aria-label="post link to test2" href="http://localhost:1313/posts/test2/"></a>
</div>
<div class="archive-entry">
<h3 class="archive-entry-title entry-hint-parent">Hugo + PaperMod + Github Pages 搭建一个完善的个人博客(以 Windows11 为例)
</h3>
<div class="archive-meta"><span title='2024-08-04 03:25:53 +0800 CST'>八月 4, 2024</span></div>
<div class="archive-meta"><span title='2024-08-04 03:25:53 +0800 CST'>2024-08-04</span>&nbsp;·&nbsp;xxx</div>
<a class="entry-link" aria-label="post link to Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)" href="http://localhost:1313/posts/test/"></a>
</div>
</div>
Expand Down
13 changes: 8 additions & 5 deletions public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="robots" content="noindex, nofollow">
<title>Categories | WncFht&#39;s Blog</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="description" content="xxx">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/categories/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -105,7 +105,7 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="归档">
<a href="http://localhost:1313/archives/" title="归档">
<span>归档</span>
</a>
</li>
Expand All @@ -115,12 +115,12 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="搜索">
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
</a>
</li>
<li>
<a href="http://localhost:1313/" title="关于">
<a href="http://localhost:1313/about/" title="关于">
<span>关于</span>
</a>
</li>
Expand All @@ -133,6 +133,9 @@ <h1>Categories</h1>
</header>

<ul class="terms-tags">
<li>
<a href="http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/">通用技术 <sup><strong><sup>2</sup></strong></sup> </a>
</li>
</ul>
</main>
</body>
Expand Down
8 changes: 8 additions & 0 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
<generator>Hugo -- 0.138.0</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<lastBuildDate>Mon, 05 Aug 2024 03:25:53 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>通用技术</title>
<link>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</link>
<pubDate>Mon, 05 Aug 2024 03:25:53 +0800</pubDate>
<guid>http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/</guid>
<description></description>
</item>
</channel>
</rss>
25 changes: 16 additions & 9 deletions public/categories/通用技术/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="robots" content="noindex, nofollow">
<title>通用技术 | WncFht&#39;s Blog</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="description" content="xxx">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/categories/%E9%80%9A%E7%94%A8%E6%8A%80%E6%9C%AF/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -114,11 +114,6 @@
<span>分类</span>
</a>
</li>
<li>
<a href="http://localhost:1313/tags/" title="标签">
<span>标签</span>
</a>
</li>
<li>
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
Expand All @@ -139,17 +134,29 @@ <h1>
</h1>
</header>

<article class="post-entry tag-entry">
<header class="entry-header">
<h2 class="entry-hint-parent">test2
</h2>
</header>
<div class="entry-content">
<p>nihao
</p>
</div>
<footer class="entry-footer"><span title='2024-08-05 03:25:53 +0800 CST'>2024-08-05</span>&nbsp;·&nbsp;xxx</footer>
<a class="entry-link" aria-label="post link to test2" href="http://localhost:1313/posts/test2/"></a>
</article>

<article class="post-entry tag-entry">
<header class="entry-header">
<h2 class="entry-hint-parent">Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)
</h2>
</header>
<div class="entry-content">
<p>nihao
{{&lt; heatmap &gt;}}
1print(&#39;ABC&#39;) 2print(&#39;ABC&#39;) 3print(&#39;ABC&#39;) 4print(&#39;ABC&#39;) 5print(&#39;ABC&#39;) 6print(&#39;ABC&#39;) 7print(&#39;ABC&#39;) 8print(&#39;ABC&#39;) </p>
</div>
<footer class="entry-footer"><span title='2024-08-04 03:25:53 +0800 CST'>八月 4, 2024</span></footer>
<footer class="entry-footer"><span title='2024-08-04 03:25:53 +0800 CST'>2024-08-04</span>&nbsp;·&nbsp;xxx</footer>
<a class="entry-link" aria-label="post link to Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)" href="http://localhost:1313/posts/test/"></a>
</article>
</main>
Expand Down
10 changes: 8 additions & 2 deletions public/categories/通用技术/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@
<generator>Hugo -- 0.138.0</generator>
<language>zh</language>
<copyright>©2024 WncFht&amp;rsquo;s Blog</copyright>
<lastBuildDate>Sun, 04 Aug 2024 03:25:53 +0800</lastBuildDate>
<lastBuildDate>Mon, 05 Aug 2024 03:25:53 +0800</lastBuildDate>
<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>test2</title>
<link>http://localhost:1313/posts/test2/</link>
<pubDate>Mon, 05 Aug 2024 03:25:53 +0800</pubDate>
<guid>http://localhost:1313/posts/test2/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;</description>
</item>
<item>
<title>Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)</title>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Sun, 04 Aug 2024 03:25:53 +0800</pubDate>
<guid>http://localhost:1313/posts/test/</guid>
<description>&lt;p&gt;nihao&lt;/p&gt;
&lt;p&gt;{{&amp;lt; heatmap &amp;gt;}}&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;ABC&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;ABC&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;ABC&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
Expand Down
44 changes: 33 additions & 11 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="noindex, nofollow">
<title>WncFht&#39;s Blog</title>

<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="Blog, xxx">
<meta name="description" content="xxx">
<meta name="author" content="xxx">
<link rel="canonical" href="http://localhost:1313/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.7f4655de5650e675782bf1685355dcabb5fbc27088e6a0da237d3b5a0c006a00.css" integrity="sha256-f0ZV3lZQ5nV4K/FoU1Xcq7X7wnCI5qDaI307WgwAagA=" rel="preload stylesheet" as="style">
<link rel="icon" href="http://localhost:1313/favicon.ico">
Expand Down Expand Up @@ -107,8 +107,8 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="归档">
<span class="active">归档</span>
<a href="http://localhost:1313/archives/" title="归档">
<span>归档</span>
</a>
</li>
<li>
Expand All @@ -117,23 +117,45 @@
</a>
</li>
<li>
<a href="http://localhost:1313/" title="搜索">
<span class="active">搜索</span>
<a href="http://localhost:1313/search/" title="搜索">
<span>搜索</span>
</a>
</li>
<li>
<a href="http://localhost:1313/" title="关于">
<span class="active">关于</span>
<a href="http://localhost:1313/about/" title="关于">
<span>关于</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<div class="post-content"><p>nihao</p>

<article class="first-entry">
<header class="entry-header">
<h2 class="entry-hint-parent">test2
</h2>
</header>
<div class="entry-content">
<p>nihao
</p>
</div>
<footer class="entry-footer"><span title='2024-08-05 03:25:53 +0800 CST'>2024-08-05</span>&nbsp;·&nbsp;xxx</footer>
<a class="entry-link" aria-label="post link to test2" href="http://localhost:1313/posts/test2/"></a>
</article>

</div>
<article class="post-entry">
<header class="entry-header">
<h2 class="entry-hint-parent">Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)
</h2>
</header>
<div class="entry-content">
<p>nihao
1print(&#39;ABC&#39;) 2print(&#39;ABC&#39;) 3print(&#39;ABC&#39;) 4print(&#39;ABC&#39;) 5print(&#39;ABC&#39;) 6print(&#39;ABC&#39;) 7print(&#39;ABC&#39;) 8print(&#39;ABC&#39;) </p>
</div>
<footer class="entry-footer"><span title='2024-08-04 03:25:53 +0800 CST'>2024-08-04</span>&nbsp;·&nbsp;xxx</footer>
<a class="entry-link" aria-label="post link to Hugo &#43; PaperMod &#43; Github Pages 搭建一个完善的个人博客(以 Windows11 为例)" href="http://localhost:1313/posts/test/"></a>
</article>
</main>
</body>

Expand Down
Loading

0 comments on commit bcb5ccb

Please sign in to comment.