You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.2 KiB
Markdown

2 years ago
# vss
A static site generator
## Caution
vss is still under development and the API is not stable.
Be aware that destructive changes will be made if you use it!
2 years ago
## Install
```
git clone https://github.com/zztkm/vss.git
cd vss
v vss.v
```
2 years ago
## Usage
### Setup contents
Currently, be sure to configure the following
2 years ago
```
tree
2 years ago
.
├── config.toml
├── dist
│ └── index.html
2 years ago
├── index.md
└── layouts
└── _index.html
```
2 years ago
cat index.md
```markdown
2 years ago
# Open Sea
A static site generator
- [GitHub](https://github.com/zztkm)
```
2 years ago
cat config.toml
```toml
title = "Open Sea"
```
cat layouts/_index.html
```html
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>@title</title>
</head>
<body>
@contents
</body>
2 years ago
```
2 years ago
Build your site
```
vss
```
### Output
2 years ago
```
tree
.
├── dist
│ └── index.html
├── index.md
└── vss
```
2 years ago
cat dist/index.html
```html
2 years ago
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>tsurutatakumi.info</title>
</head>
<body>
<h1>Open Sea</h1>
<p>A static site generator</p>
<ul>
<li><a href="https://github.com/zztkm">GitHub</a></li>
</ul>
</body>
```