rscontent

command module
v0.0.0-...-cf18738 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

README

Markdown + Django Template Static Generator

Tiny tool for static content.

Directory layout


example/
├── config.json
├── content
│   ├── about.md
│   └── index.md
├── static
└── template
    ├── index.html
    └── page.html

How to run dev mode

go install github.com/restsend/rscontent@latest

# run dev mode
rscontent -r example

Build static sites

All contents build with html, the result store in ./dist directory

pi@DESKTOP-SSDOA19:~/workspace/rs/rscontent$ rscontent -r example -b

2022/11/05 11:44:45 static dir: example/static
2022/11/05 11:44:45 content dir: example/content
2022/11/05 11:44:45 template dir: example/template
2022/11/05 11:44:45 
2022/11/05 11:44:45 Build 'example/content'....
2022/11/05 11:44:45  'example/content/about.md' => 'dist/about.html' size 155 B  usage 1 ms
2022/11/05 11:44:45  'example/content/blog/hello.md' => 'dist/blog/hello.html' size 91 B  usage 0 ms
2022/11/05 11:44:45  'example/content/index.md' => 'dist/index.html' size 128 B  usage 0 ms

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL