No description
Find a file
2022-08-04 02:31:10 +09:00
.github/workflows 👷 update ci system 2022-08-04 02:31:10 +09:00
example 🚧 2022-08-02 13:00:14 +09:00
template layout/_index.html を 外部から読み込めるように変更 2022-07-31 20:16:16 +09:00
testfiles udpate: testfiles 2022-07-26 02:03:33 +09:00
.editorconfig 🎉 init 2022-07-23 02:12:02 +09:00
.gitattributes 🎉 init 2022-07-23 02:12:02 +09:00
.gitignore 🚧 2022-08-02 13:00:14 +09:00
README.md 📝 update: readme.md 2022-07-31 20:25:50 +09:00
Taskfile.yml 👷 update ci system 2022-08-04 02:31:10 +09:00
v.mod 🔖 v0.0.4 2022-08-03 22:35:18 +09:00
vss.v Added: convert md paths to html paths 2022-08-03 22:34:35 +09:00
vss_test.v markdown で書いたコンテンツをhtmlに埋め込む機能を追加 2022-07-26 13:15:17 +09:00

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!

Install

git clone https://github.com/zztkm/vss.git
cd vss

v vss.v

Usage

Setup contents

Currently, be sure to configure the following

 tree  
.
├── config.toml
├── dist
│   └── index.html
├── index.md
└── layouts
    └── _index.html

cat index.md

# Open Sea

A static site generator

- [GitHub](https://github.com/zztkm)

cat config.toml

title = "Open Sea"

cat layouts/_index.html

<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>@title</title>
</head>
<body>
    @contents
</body>

Build your site

vss

Output

 tree
.
├── dist
│   └── index.html
├── index.md
└── vss

cat dist/index.html

<!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>