hugo安装

git安装 Git - Downloading Package
标准版 一路next
便携版右键没有git bash 不大会用

go环境
The Go Programming Language
黄色按钮下面的小子windows版本的 直接安装

hugo下载
Releases · gohugoio/hugo
Fetching Title#5mo1 hugo_extended_0.134.2_windows-amd64 扩展版本的。

Complete List | Hugo Themes
主题安装需要复制下载地址。

最后本地搭建完,hugo 看不到 post posts 文章 本地
chrome_B3B8Xk90Qa.png




hugo new site ACEVS
git remote add origin https://github.com/.github.io.git
git push -u origin main
git remote add origin https://github.com/.git
git config --global user.email ""
git config --global user.name ""
git commit -m "first"
git push -u origin main --force
git push -u origin master --force
git fetch origin main 
git config user.name
ssh-keygen -t rsa -C ""
hugo server -t stack --buildDrafts

git commit -m""

官方的流程
git init  初始化,我理解就是定位。相当于cd 的作用,这个装了2.3遍才发觉的。
git add README.md
git commit -m "first commit"
git branch -M main  git branch -M master 切换分支
git remote add origin https://github.com/acevsok/acevs.github.io.git
git push -u origin main 必要需要 -f --force  

.github  这样的文件夹 需要mkdir 创建。

实践就会有收获。


如果不显示肯能这个问题
然后我把自己的`posts`目录改成`post`,在把之前config.toml改回原来的`post`。然后都完美跑起来了。

参考
配置环境这个博文写的非常详细。本地部署好再说

如何搭建HUGO博客网站并配置公网地址实现随时随地远程访问教程

Installing on Windows - Hugo中文文档

应该是命名问题 讨论地址 按说明配置后首页无法列出文章列表,手动输入地址可以显示内容 · Issue #14 · olOwOlo/hugo-theme-even · GitHub

使用 Hugo + Github Pages 部署个人博客

Github Pages + Hugo 搭建个人博客 - 渣渣的夏天

使用Hugo+Github从0开始免费搭建个人博客_hugo github-CSDN博客

从零开始的 Hugo 博客搭建 - Stilig's blog

Hugo部署到Vercel,提高国内加载速度

git - ! [rejected] master -> master (fetch first) - Stack Overflow

Host on GitHub Pages | Hugo

9 评论

  1. Google Chrome 128 Windows 10

    git init是初始化当前项目的git信息,你的代码前面部分都是在做Github初始化项目的工作。

    你其实可以反过来。
    1. 先在Github上新建项目
    2. git clone
    3. git commit -m “first”
    4. git push

    • Google Chrome 124 Windows 10

      是的~之前注释那么说的.看来我理解错了 谢谢提醒哈.

      git bash 若是在工程目录下启动 git bash工具的话,这里的文件填写的路径为相对工程目录的路径;可以填写多个用 空格 隔开,如:git add 1.txt 2.txt

    • Google Chrome 123 Windows 10

      是的。慢慢手搓,失败的时候感觉进步快。你可以试试。
      也有打包的fork的。
      go语言的据说几百个md文档速度比hexo快不少。也可以部分提交渲染更新。

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注