diff options
author | Bradley Taunt <bt@btxx.org> | 2024-07-21 13:27:03 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-07-21 13:27:03 -0400 |
commit | 264d75538ff4ef827a99ff5100cd187e22e8a66f (patch) | |
tree | d964ad3f15503992b69c0453ed61bfce9874d76b | |
parent | 3fbec821c7645835308f88d6d0f22501a7a56514 (diff) |
Setup wruby properly, clean up Makefile
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | wruby.rb (renamed from blog.rb) | 5 |
2 files changed, 4 insertions, 8 deletions
@@ -5,9 +5,4 @@ build: clean: rm -rf build/* -watch: - while true; do \ - ls -d .git/* * posts/* pages/* header.html | entr -cd make build ;\ - done - -.PHONY: build clean watch +.PHONY: build clean @@ -5,7 +5,7 @@ require 'rss' # Configuration all the things! site_url = 'https://bt.srht.site' -site_name = 'btxx.org' +site_name = 'bt' author_name = 'Bradley Taunt' posts_dir = 'posts' @@ -84,7 +84,7 @@ def generate_rss(posts, rss_file, author_name, site_name, site_url) rss = RSS::Maker.make("atom") do |maker| maker.channel.author = author_name maker.channel.updated = Time.now.to_s - maker.channel.about = site_name + maker.channel.about = site_url maker.channel.title = "#{site_name} RSS Feed" posts.each do |post| @@ -112,3 +112,4 @@ FileUtils.cp_r(public_dir, output_dir) generate_rss(posts, rss_file, author_name, site_name, site_url) puts "Blog built successfully in '#{output_dir}' folder. Have a great day!" + |