Add IndexNow Key
rails app:template LOCATION='https://perron.railsdesigner.com/library/indexnow/template.rb'
This snippet adds a verification file to your site's public folder to support the IndexNow protocol, using the key for both the filename and its content, fulfilling the IndexNow requirements automatically.
Use this Helptail workflow to automatically ping IndexNow when new content is detected.
Template source
key = SecureRandom.hex file "public/#{key}.txt", <<-KEY #{key} KEY say "------\n 👉 Use this Helptail workflow to automatically ping IndexNow when new content is detected: https://helptail.com/tails/article-to-indexnow/\n ------"