杜郎俊赏 - dujun.io

开源实例之Cobalt

前言

Cobalt is a static site generator written in Rust. It uses Liquid templates and markdown.

Cobalt 是 Rust 语言开发的静态网站生成工具。

实例地址

http://cobalt.dujun.eu.org

实例配置

配置描述
系统Debian
开发环境服务端Rust 1.70
服务器Nginx
程序Cobalt 0.19.0
数据booyaa blog

实例部署

权限要求

  • 具有系统读写权限
  • 已安装 Rust
  • 已安装 Nginx

安装程序

官网地址:https://cobalt-org.github.io
程序仓库:https://github.com/cobalt-org/cobalt.rs
数据仓库:https://github.com/booyaa/booyaa.github.io

#克隆代码
git clone https://github.com/booyaa/booyaa.github.io.git blog
cd blog

#安装 Cobalt
cargo install cobalt-bin

#新建文章
cobalt new "滕王阁序" --file posts

#生成静态文件
cobalt build

实例体验

首页

文章页

进入实例深度体验

后记

本实例仅供参考,不定期重置数据。

体验更多开源实例

标签: 开源实例 个人开源实例 静态博客开源实例 Rust开源实例
日期:2023-06-26