[MIRROR / Unmaintained]Minimal blog and site generator written in ruby
https://wruby.site
- Ruby 44.9%
- CSS 43.2%
- HTML 11.1%
- Makefile 0.8%
wruby
- Minimal blog and static site generator built with Ruby
- Licensed under MIT
- The "w" is silent...
Setup
gem install bundlerbundle install
Getting Started
Make your changes in the main configuration file _config.yml file (site URL, your name,
etc.).
- Blog posts go under the
postsdirectory as markdown files - Posts need to be structured with an
h1on the first line, a space on the second, and the date on the third line (ie. 2024年07月20日) - Pages go under the
pagesdirectory as markdown files - Media (images, videos etc) go in the root
publicdirectory - Main styling is found in
public/style.css(feel free to get creative!)
Defaults
- The homepage only displays the first
5posts. You can configure this in_config.ymlunderpost_count. - The full blog post index will be generated at
yoursite.com/posts - This means you need to have a
posts.mdfile in yourpagesdirectory (or changeposts_indexthe core_config.yml) - Your generated files can be compressed by default by setting the
compress_sitetotrue
Running
wrubyis based off of Ruby 3.3.0 (userbenvorrvmto avoid privilege conflicts)- Install bundler:
gem install bundler - Install gems:
bundle install - Run
make buildin the root directory - Upload
buildfolder to your server - Share your blog or site!