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/.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

Join the ConversationLeave a reply

Your email address will not be published. Required fields are marked *

Comment*

Name*

Website

Comments

  1. Google Chrome 128 Windows 10

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

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

    1. Google Chrome 124 Windows 10

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

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

  2. Google Chrome 128 Windows 10

    github add .

    1. WebView 4 Android 14

      好的 漏掉没回复

  3. Firefox 130 Windows 10

    静态博客有些太折腾了。
    hugo是go语言打包的?

    1. Google Chrome 123 Windows 10

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

  4. 粽叶加米
    Google Chrome 128 Windows 10

    真的很能搞,每样程序都想一试。

    1. Google Chrome 123 Windows 10

      可以试试 部署到github.page

  5. Mozilla Compatible iPhone iOS 17.3

    hugo编译和运行速度还不错

    1. Google Chrome 123 Windows 10

      是的~看上去挺快的·astro也很快。不过都不好折腾。

  6. Google Chrome 108 Mac OS X 10.15

    静态博客一直玩不转,操作包括文章编辑的那个格式,我都没搞好,然后半途而废了,。。。

    1. Google Chrome 124 Windows 10

      我也是。俺没放弃,没事就折腾,失败容易进步。