- Introduced `SeoConcern` module to handle SEO meta tags - Integrated `meta-tags` gem for customizable meta tags - Created `RefreshSitemapWorker` to automate sitemap updates - Added relevant meta tags in controllers for weather art and cities - Configured sitemap generation settings These changes improve the SEO of the application by ensuring that pages have appropriate meta tags. Additionally, a sitemap is now generated and refreshed daily, enhancing site visibility to search engines.
12 lines
514 B
Ruby
12 lines
514 B
Ruby
class HomeController < ApplicationController
|
|
def index
|
|
@latest_arts = WeatherArt.includes(:city).order(created_at: :desc).limit(6)
|
|
@featured_arts = WeatherArt.includes(:city).order(created_at: :desc).limit(5)
|
|
set_meta_tags(
|
|
title: "AI-Generated Weather Art",
|
|
description: "Experience weather through artistic AI visualization. Daily updated weather art for cities worldwide.",
|
|
keywords: "AI weather art, weather visualization, city weather, artificial intelligence"
|
|
)
|
|
end
|
|
end
|