8000 GitHub - qwendy/gugo: 简易的静态博客网站生成器
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qwendy/gugo

Repository files navigation

gugo

简易的静态博客网站生成器

使用方法

  1. 下载我的项目
git clone github.com/qwendy/gugo
  1. 下载glide,用于安装所有依赖的包
go get github.com/Masterminds/glide

安装好glide之后,安装需要的依赖

glide install
  1. 运行 在项目的主文件夹创建source/_post文件夹。将你的markdown文件放在此文件夹内。运行
go run main.go -h

查看选项。可以直接编译

go build -o gugo.exe main.go

直接运行gugo默认将source/_post下的文件转成静态博客至public文件夹

  • ./gugo.exe -m g 生成site
  • ./gugo.exe -m s 使用本地服务器运行静态博客

使用

bash push.sh

上传静态博客文件夹至github。

本博客的样例地址为 https://qwendy.github.io/ 这也是我的个人博客。:-D

About

简易的静态博客网站生成器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0