1. 首页
  2. 考试认证
  3. 其它
  4. 使用静态站点生成器构建Landscapesforhealing静态网站

使用静态站点生成器构建Landscapesforhealing静态网站

上传者: 2024-10-29 03:57:47上传 ZIP文件 3.27MB 热度 11次

本项目 Landscapesforhealing 通过静态站点生成器和前端框架运行,提供了高效便捷的网站建设流程。

安装要求

  • 需要安装 Ruby 1.9+ 版本:

```

gem install bundler

npm install bower -g

```

快速开始

  1. 克隆项目:

```

git clone git@github.com:logankoester/landscapesforhealing.git

cd landscapesforhealing

```

  1. 安装依赖:

```

bundle install

npm install

bower install

```

  1. 编译并预览网站:

```

nanoc compile

nanoc view

```

此时,网站将在本地开发环境中启动。

开发与编译

  • 要编译网站,请运行:nanoc compile

  • 若要在文件更改时自动重新编译,请运行:guard start

添加页面

  • content/ 文件夹下创建一个新文件即可添加页面。文件名将自动决定页面的URL。文件顶部添加元数据以配置页面内容。
下载地址
用户评论