1
5
Fork
You've already forked wruby
0
[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%
Find a file
2025年12月11日 14:32:14 -05:00
_includes Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
pages Add new site to websites page 2025年09月06日 14:55:41 -04:00
posts Force RSS time to set itself to midday, put original post date back 2024年07月24日 10:22:01 -04:00
public Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
.gitignore Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
.ruby-version Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
_config.yml Update config URL and sourcehut link in index.md 2025年11月30日 13:01:57 -05:00
Gemfile Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
Gemfile.lock Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
index.md Update config URL and sourcehut link in index.md 2025年11月30日 13:01:57 -05:00
LICENSE Update README, add directories, image, LICENSE, and build config 2024年07月21日 12:18:17 -04:00
Makefile Remove Gemfiles and use inline bundler instead 2024年07月26日 08:53:21 -04:00
README.md Initial rework, cleanup and minor added functionality 2025年11月14日 15:04:15 -05:00
wruby.rb Include closing unordered list HTML tag 2025年12月11日 14:32:14 -05:00

wruby

  • Minimal blog and static site generator built with Ruby
  • Licensed under MIT
  • The "w" is silent...

Setup

  1. gem install bundler
  2. bundle install

Getting Started

Make your changes in the main configuration file _config.yml file (site URL, your name, etc.).

  • Blog posts go under the posts directory as markdown files
  • Posts need to be structured with an h1 on the first line, a space on the second, and the date on the third line (ie. 2024年07月20日)
  • Pages go under the pages directory as markdown files
  • Media (images, videos etc) go in the root public directory
  • Main styling is found in public/style.css (feel free to get creative!)

Defaults

  • The homepage only displays the first 5 posts. You can configure this in _config.yml under post_count.
  • The full blog post index will be generated at yoursite.com/posts
  • This means you need to have a posts.md file in your pages directory (or change posts_index the core _config.yml)
  • Your generated files can be compressed by default by setting the compress_site to true

Running

  1. wruby is based off of Ruby 3.3.0 (use rbenv or rvm to avoid privilege conflicts)
  2. Install bundler: gem install bundler
  3. Install gems: bundle install
  4. Run make build in the root directory
  5. Upload build folder to your server
  6. Share your blog or site!