From 563df8402e563025f812295daa6389053b1fbd47 Mon Sep 17 00:00:00 2001 From: Daniel Bogan Date: Mon, 23 Oct 2023 08:06:15 +0000 Subject: [PATCH] Set the config as a new hash --- lib/dimples/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dimples/site.rb b/lib/dimples/site.rb index 2590c0c..aed4f56 100644 --- a/lib/dimples/site.rb +++ b/lib/dimples/site.rb @@ -23,7 +23,7 @@ def initialize(source_path, output_path, config) } @config = DEFAULT_CONFIG - @config.merge!(config) if config&.is_a?(Hash) + @config = @config.merge(config) if config.is_a?(Hash) %w[pages posts static templates].each do |type| @paths[type.to_sym] = File.join(@paths[:source], type)