No description
Find a file
2022-09-07 15:32:12 +09:00
.github 👷 update ci.yaml 2022-09-06 01:02:48 +09:00
commands update v0.0.9 2022-09-06 02:37:17 +09:00
example Merge branch 'main' of https://github.com/zztkm/vss 2022-09-07 15:32:12 +09:00
misc 🔨 update archive script 2022-08-14 02:48:08 +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 🔧 update 2022-08-12 22:04:36 +09:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-08-18 21:23:59 +09:00
image.gif add vss image 2022-08-17 04:48:50 +09:00
LICENSE Create LICENSE 2022-08-18 21:14:42 +09:00
main.v 🎨 Maintain repository structure 2022-08-13 21:44:21 +09:00
README.md 📝 udpate caution msg 2022-09-06 01:03:33 +09:00
Taskfile.yml 🔨 udpate 2022-08-14 19:40:30 +09:00
v.mod 🔊 add logs 2022-08-14 20:01:01 +09:00

vss

vss is an easy to use static site generator. With layout/index.html, Markdown content, and a little configuration, you can easily build your website!

  • Easy to use
  • Create site content with Markdown

vss

CI

Caution

vss is still under development and the API is not stable. Be aware that disruptive changes may be made!

Installation

Get the binary

Download from Releases

Build from source

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

v install markdown

v . -o vss

Usage

Setup contents

Currently, be sure to configure the following

 tree  
.
├── about.md
├── config.toml
├── index.md
├── layouts
│   └── index.html
└── static
    ├── css
    │   └── main.css
    └── js
        └── main.js

cat index.md

# Open Sea

A static site generator

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

[about page](./about.md)

cat config.toml

title = "Open Sea"
description = "Takumi Tsuruta's home page"
baseUrl = 'https://zztkm.github.io/vss/'

cat layouts/index.html

<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>@title</title>
    <base href="@baseUrl">
    <meta name="description" content="@description" />
</head>

<body>
    @contents
</body>

Build your site

vss build

Output

 tree dist
dist
├── about.html
├── css
│   └── main.css
├── index.html
└── js
    └── main.js

cat dist/index.html

<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>Open Sea</title>
    <base href="https://zztkm.github.io/vss/">
    <meta name="description" content="Takumi Tsuruta's home page" />
</head>

<body>
    <h1>Open Sea</h1>
<p>A static site generator</p>
<ul>
<li><a href="https://github.com/zztkm">GitHub</a></li>
</ul>
<p><a href="./about.html">about page</a></p>
</body>

Example

Examples can be found at the example directory.