Skip to content

gofenix/ego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ego

一个简单的静态站点生成器。

用法

  1. 创建博客
$ ego new site zzf-blog
$ cd zzf-blog
$ tree
.
├── config.json
├── contents
│   └── hello_world.md
└── layouts
    ├── blog.eex
    └── index.eex
  1. build
$ ego build
.
├── config.json
├── contents
│   └── hello_world.md
├── ego
├── layouts
│   ├── blog.eex
│   └── index.eex
└── public
    ├── hello_world.html
    └── index.html
  1. 预览
$ ego server

image

从源码构建

// 获取依赖
mix deps.get

// 通过escript构建
mix escript.build

// 执行命令
./ego new site zzf-blog

$ cd zzf-blog
$ tree
.
├── config.json
├── contents
│   └── hello_world.md
└── layouts
    ├── blog.eex
    └── index.eex

访问 http://127.0.0.1:4000/

image

About

a static site generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published