No description
Find a file
2024-07-25 11:01:07 -04:00
pages Pull out configuration into separate file,update homepage post count, default post index page 2024-07-23 09:36:35 -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/images Update README, add directories, image, LICENSE, and build config 2024-07-21 12:18:17 -04:00
.build.yml Update README, add directories, image, LICENSE, and build config 2024-07-21 12:18:17 -04:00
.gitignore Add websites page, new blog post example 2024-07-22 08:46:55 -04:00
_config.yml Pull out configuration into separate file,update homepage post count, default post index page 2024-07-23 09:36:35 -04:00
footer.html Pull out configuration into separate file,update homepage post count, default post index page 2024-07-23 09:36:35 -04:00
Gemfile Update project to latest ruby-3.3.3 2024-07-25 11:01:07 -04:00
Gemfile.lock Update project to latest ruby-3.3.3 2024-07-25 11:01:07 -04:00
header.html Include proper top ID ref, add comment in root index 2024-07-23 09:55:23 -04:00
index.md Avoid confusion with the ruby gem 2024-07-23 09:58:02 -04:00
LICENSE Update README, add directories, image, LICENSE, and build config 2024-07-21 12:18:17 -04:00
Makefile Include Gemfile and lock, update README to utilize bundle install, Makefile update 2024-07-25 10:43:46 -04:00
README.md Include Gemfile and lock, update README to utilize bundle install, Makefile update 2024-07-25 10:43:46 -04:00
wruby.rb Force RSS time to set itself to midday, put original post date back 2024-07-24 10:22:01 -04:00

wruby

This is a heavy work-in-progress and I am hardly a Ruby expert. Please consider contributing to make the project better!

Minimal blog and static site generator. The "w" is silent...

Dependencies

  • ruby 3.3.0

Install required gems:

bundle install

Getting Started

Make your changes in the main configuration file _config.yml file (site URL, your name, etc.). Remove the .build.yml unless you plan to host with sourcehut pages, otherwise edit this file with your own details.

  • 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

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)

Running

  1. Run make build in the root directory
  2. Upload build folder to your server
  3. Share your blog or site!