Skip to content

wty2019wty/wty2019wty.github.io

Repository files navigation

用hugo+GitHub Pages搭建的小破站

github-contribution-grid-snake

Hugo 在 EdgeOne Pages 部署

首先在git仓库里添加一个文件:package.json,代码如下:

{
  "name": "填一个名称",
  "version": "1.0.0",
  "scripts": {
    "build": "./node_modules/.bin/hugo --minify",
    "postinstall": "git submodule update --init",
    "dev": "hugo server -D",
    "clean": "rm -rf public",
    "preview": "hugo server"
  },
  "dependencies": {
    "hugo-extended": "^0.147.8"
  },
  "devDependencies": {
    "cross-env": "^7.0.3"
  }
}

其中"hugo-extended": "^0.147.8" 是Hugo的版本,后续改成最新版即可。

输出目录:public

构建命令:npm run build

安装命令:HUGO_BIN_EXTENDED=true npm install --save-dev cross-env

About

用hugo+GitHub Pages搭建的小破站

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published