From 2e93b4550c9a8b7d0daa0009fa5c7c9726cb1375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Helleboid?= Date: Tue, 29 Nov 2022 08:55:22 +0400 Subject: [PATCH] Ensure LocationFinder is re-initialized between rendering --- lib/jekyll-maps/google_map_tag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-maps/google_map_tag.rb b/lib/jekyll-maps/google_map_tag.rb index 4a5f266..dfc7cb8 100644 --- a/lib/jekyll-maps/google_map_tag.rb +++ b/lib/jekyll-maps/google_map_tag.rb @@ -7,11 +7,11 @@ class GoogleMapTag < Liquid::Tag def initialize(_, args, _) @args = OptionsParser.parse(args) - @finder = LocationFinder.new(@args) super end def render(context) + @finder = LocationFinder.new(@args) locations = @finder.find(context.registers[:site], context.registers[:page]) @args[:attributes][:id] ||= SecureRandom.uuid