Skip to content

Commit

Permalink
5commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyiid committed Apr 14, 2024
1 parent fd552e5 commit d593f18
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 25 deletions.
4 changes: 2 additions & 2 deletions categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on My New Hugo Site</title>
<link>https://example.org/categories/</link>
<link>https://voyiid.github.io/categories/</link>
<description>Recent content in Categories on My New Hugo Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://example.org/categories/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="https://voyiid.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
8 changes: 4 additions & 4 deletions hugo安装说明/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
<div class="post">
<h1>Hugo安装说明</h1>
<time datetime=2024-04-14T16:25:59&#43;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时,会提示&quot;作者身份未知&quot;,此时就需要按照提示配置:
命令:git branch -m main</p>
<p>3、关键问题2:git首次上传commit时,会提示&quot;作者身份未知&quot;,此时就需要按照提示配置:
git config &ndash;global user.name XXX
git config &ndash;global user.email <a href="mailto:[email protected]">[email protected]</a></p>
<p>4、关键问题3:git上传输入的用户名为github用户名,当时密码不是github账号的密码,而是需要在github账号配置-开发设置&ndash;配置 Personal access tokens,这个才是git密码;</p>
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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&#43;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时,会提示&quot;作者身份未知&quot;,此时就需要按照提示配置: git config &ndash;global user.name XXX git config &ndash;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时,会提示&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

Expand Down
12 changes: 6 additions & 6 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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/&#xA;2、关键问题1: 本地验证完全,建立git准备发布至github前,应该先将本地分支重命名为main; 否则,上传按照默认master上传,会自动新建分支,而username.github.io无法正常获取master分支下的博客信息,起只取得main分支下的。 原因: github新建仓库默认分支为main,而不是master了; 命令:git branch -m main&#xA;3、关键问题2:git首次上传commit时,会提示&amp;quot;作者身份未知&amp;quot;,此时就需要按照提示配置: git config &amp;ndash;global user.name XXX git config &amp;ndash;global user.email [email protected]&#xA;4、关键问题3:git上传输入的用户名为github用户名,当时密码不是github账号的密码,而是需要在github账号配置-开发设置&amp;ndash;配置 Personal access tokens,这个才是git密码;&#xA;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>
Expand Down
8 changes: 4 additions & 4 deletions post/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on My New Hugo Site</title>
<link>https://example.org/post/</link>
<link>https://voyiid.github.io/post/</link>
<description>Recent content in Posts on My New Hugo Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sun, 14 Apr 2024 11:24:38 +0800</lastBuildDate>
<atom:link href="https://example.org/post/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="https://voyiid.github.io/post/index.xml" rel="self" type="application/rss+xml" />
<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>
Expand Down
12 changes: 6 additions & 6 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://example.org/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</loc>
<loc>https://voyiid.github.io/hugo%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</loc>
<lastmod>2024-04-14T16:25:59+08:00</lastmod>
</url><url>
<loc>https://example.org/</loc>
<loc>https://voyiid.github.io/</loc>
<lastmod>2024-04-14T16:25:59+08:00</lastmod>
</url><url>
<loc>https://example.org/post/hello/</loc>
<loc>https://voyiid.github.io/post/hello/</loc>
<lastmod>2024-04-14T11:24:38+08:00</lastmod>
</url><url>
<loc>https://example.org/post/</loc>
<loc>https://voyiid.github.io/post/</loc>
<lastmod>2024-04-14T11:24:38+08:00</lastmod>
</url><url>
<loc>https://example.org/categories/</loc>
<loc>https://voyiid.github.io/categories/</loc>
</url><url>
<loc>https://example.org/tags/</loc>
<loc>https://voyiid.github.io/tags/</loc>
</url>
</urlset>
4 changes: 2 additions & 2 deletions tags/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tags on My New Hugo Site</title>
<link>https://example.org/tags/</link>
<link>https://voyiid.github.io/tags/</link>
<description>Recent content in Tags on My New Hugo Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://example.org/tags/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="https://voyiid.github.io/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>

0 comments on commit d593f18

Please sign in to comment.