aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-21 13:27:03 -0400
committerBradley Taunt <bt@btxx.org>2024-07-21 13:27:03 -0400
commit264d75538ff4ef827a99ff5100cd187e22e8a66f (patch)
treed964ad3f15503992b69c0453ed61bfce9874d76b
parent3fbec821c7645835308f88d6d0f22501a7a56514 (diff)
Setup wruby properly, clean up Makefile
-rw-r--r--Makefile7
-rw-r--r--wruby.rb (renamed from blog.rb)5
2 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 769d796..24f6fa6 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/blog.rb b/wruby.rb
index d750b48..214e7a5 100644
--- a/blog.rb
+++ b/wruby.rb
@@ -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!"
+