-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,12 @@ | |
<div class="post"> | ||
<h1>Hugo安装说明</h1> | ||
<time datetime=2024-04-14T16:25:59+0800 class="post-date">Sun, Apr 14, 2024</time> | ||
<p>1、主要参考网站:https://www.gohugo.org/ | ||
2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; | ||
<p>1、主要参考网站:https://www.gohugo.org/</p> | ||
<p>2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; | ||
否则,上传按照默认master上传,会自动新建分支,而username.github.io无法正常获取master分支下的博客信息,起只取得main分支下的。 | ||
原因: github新建仓库默认分支为main,而不是master了; | ||
命令:git branch -m main | ||
3、关键问题2:git首次上传commit时,会提示"作者身份未知",此时就需要按照提示配置: | ||
命令:git branch -m main</p> | ||
<p>3、关键问题2:git首次上传commit时,会提示"作者身份未知",此时就需要按照提示配置: | ||
git config –global user.name XXX | ||
git config –global user.email <a href="mailto:[email protected]">[email protected]</a></p> | ||
<p>4、关键问题3:git上传输入的用户名为github用户名,当时密码不是github账号的密码,而是需要在github账号配置-开发设置–配置 Personal access tokens,这个才是git密码;</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,9 @@ <h1 class="post-title"> | |
<a href="https://voyiid.github.io/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/">Hugo安装说明</a> | ||
</h1> | ||
<time datetime="2024-04-14T16:25:59+0800" class="post-date">Sun, Apr 14, 2024</time> | ||
1、主要参考网站:https://www.gohugo.org/ 2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; 否则,上传按照默认master上传,会自动新建分支,而username.github.io无法正常获取master分支下的博客信息,起只取得main分支下的。 原因: github新建仓库默认分支为main,而不是master了; 命令:git branch -m main 3、关键问题2:git首次上传commit时,会提示"作者身份未知",此时就需要按照提示配置: git config –global user.name XXX git config –global user.email [email protected] | ||
1、主要参考网站:https://www.gohugo.org/ | ||
2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; 否则,上传按照默认master上传,会自动新建分支,而username.github.io无法正常获取master分支下的博客信息,起只取得main分支下的。 原因: github新建仓库默认分支为main,而不是master了; 命令:git branch -m main | ||
3、关键问题2:git首次上传commit时,会提示"作者身份未知",此时就需要按照提示配置: git config –global user.name XXX git config –global user.email [email protected] | ||
4、关键问题3:git上传输入的用户名为github用户名,当时密码不是github账号的密码,而是需要在github账号配置-开发设置–配置 Personal access tokens,这个才是git密码; | ||
5、关键问题4: git-push的时候可能提示云端和本地不一致,可能是在创建仓库的时候,勾选创建了README.md,此时可以强制上传(-f); 命名: git push -n -f origin main | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,24 @@ | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>My New Hugo Site</title> | ||
<link>https://example.org/</link> | ||
<link>https://voyiid.github.io/</link> | ||
<description>Recent content on My New Hugo Site</description> | ||
<generator>Hugo -- gohugo.io</generator> | ||
<language>en-us</language> | ||
<lastBuildDate>Sun, 14 Apr 2024 16:25:59 +0800</lastBuildDate> | ||
<atom:link href="https://example.org/index.xml" rel="self" type="application/rss+xml" /> | ||
<atom:link href="https://voyiid.github.io/index.xml" rel="self" type="application/rss+xml" /> | ||
<item> | ||
<title>Hugo安装说明</title> | ||
<link>https://example.org/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</link> | ||
<link>https://voyiid.github.io/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</link> | ||
<pubDate>Sun, 14 Apr 2024 16:25:59 +0800</pubDate> | ||
<guid>https://example.org/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</guid> | ||
<guid>https://voyiid.github.io/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</guid> | ||
<description>1、主要参考网站:https://www.gohugo.org/
2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; 否则,上传按照默认master上传,会自动新建分支,而username.github.io无法正常获取master分支下的博客信息,起只取得main分支下的。 原因: github新建仓库默认分支为main,而不是master了; 命令:git branch -m main
3、关键问题2:git首次上传commit时,会提示&quot;作者身份未知&quot;,此时就需要按照提示配置: git config &ndash;global user.name XXX git config &ndash;global user.email [email protected]
4、关键问题3:git上传输入的用户名为github用户名,当时密码不是github账号的密码,而是需要在github账号配置-开发设置&ndash;配置 Personal access tokens,这个才是git密码;
5、关键问题4: git-push的时候可能提示云端和本地不一致,可能是在创建仓库的时候,勾选创建了README.md,此时可以强制上传(-f); 命名: git push -n -f origin main</description> | ||
</item> | ||
<item> | ||
<title>First</title> | ||
<link>https://example.org/post/hello/</link> | ||
<link>https://voyiid.github.io/post/hello/</link> | ||
<pubDate>Sun, 14 Apr 2024 11:24:38 +0800</pubDate> | ||
<guid>https://example.org/post/hello/</guid> | ||
<guid>https://voyiid.github.io/post/hello/</guid> | ||
<description>Hello,World!</description> | ||
</item> | ||
</channel> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters