- Ensure consistent use of double quotes for strings in the Gemfile and sitemap configuration files. - Add spaces for better readability in array declarations within the RefreshSitemapWorker. These changes improve the readability of the code without changing any functionality. Adhering to a consistent coding style helps maintainability and team collaboration.
25 lines
624 B
Ruby
25 lines
624 B
Ruby
# app/concerns/seo_concern.rb
|
|
module SeoConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_action :prepare_meta_tags
|
|
end
|
|
|
|
private
|
|
|
|
def prepare_meta_tags
|
|
set_meta_tags(
|
|
site: "TodayAIWeather",
|
|
description: "Discover AI-generated weather art from cities around the world. Real-time weather visualization through artificial intelligence.",
|
|
keywords: "weather, AI art, weather visualization, city weather, artificial intelligence",
|
|
og: {
|
|
title: :title,
|
|
description: :description,
|
|
type: "website",
|
|
url: request.original_url
|
|
}
|
|
)
|
|
end
|
|
end
|