2025-01-19 01:13:59 +08:00
|
|
|
<!DOCTYPE html>
|
2025-02-22 15:19:40 +08:00
|
|
|
<html lang="<%= I18n.locale %>">
|
2025-01-19 01:13:59 +08:00
|
|
|
<head>
|
|
|
|
<title><%= content_for(:title) || "Today Ai Weather" %></title>
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2025-01-23 19:02:52 +08:00
|
|
|
<%= display_meta_tags(
|
|
|
|
site: 'TodayAIWeather',
|
|
|
|
reverse: true,
|
|
|
|
og: {
|
|
|
|
site_name: 'TodayAIWeather',
|
|
|
|
type: 'website',
|
2025-02-24 14:10:32 +08:00
|
|
|
keywords: "ai art, ai weather, weather art, AI visualization, today ai weather",
|
2025-01-23 19:02:52 +08:00
|
|
|
url: request.original_url
|
|
|
|
},
|
|
|
|
alternate: {
|
2025-02-21 23:46:25 +08:00
|
|
|
"en" => url_for(locale: 'en'),
|
2025-01-23 19:02:52 +08:00
|
|
|
"zh-CN" => url_for(locale: 'zh-CN'),
|
2025-02-21 23:46:25 +08:00
|
|
|
"ja" => url_for(locale: 'ja'),
|
|
|
|
"ko" => url_for(locale: 'ko')
|
2025-01-23 19:02:52 +08:00
|
|
|
}
|
|
|
|
) %>
|
2025-01-19 01:13:59 +08:00
|
|
|
<%= csrf_meta_tags %>
|
|
|
|
<%= csp_meta_tag %>
|
|
|
|
|
|
|
|
<%= yield :head %>
|
|
|
|
|
|
|
|
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
|
|
|
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
|
|
|
|
|
|
|
<link rel="icon" href="/icon.png" type="image/png">
|
|
|
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
|
|
<link rel="apple-touch-icon" href="/icon.png">
|
|
|
|
|
|
|
|
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
2025-01-27 06:54:24 +08:00
|
|
|
<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
|
2025-01-19 01:13:59 +08:00
|
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
2025-02-19 17:38:49 +08:00
|
|
|
<%= auto_discovery_link_tag :rss, rss_feed_url(format: :rss), title: 'RSS Feed' %>
|
|
|
|
|
2025-02-02 10:46:06 +08:00
|
|
|
<script defer data-domain="todayaiweather.com" src="https://plausible.frytea.com/js/script.js"></script>
|
2025-01-23 19:49:59 +08:00
|
|
|
|
2025-02-02 10:46:06 +08:00
|
|
|
<script defer src="https://busuanzi.frytea.com/js"></script>
|
2025-01-26 02:08:48 +08:00
|
|
|
|
2025-01-23 19:49:59 +08:00
|
|
|
<!-- Google tag (gtag.js) -->
|
2025-02-02 10:46:06 +08:00
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PX1C92V5L7"></script>
|
|
|
|
<script>
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
gtag('js', new Date());
|
2025-01-23 19:49:59 +08:00
|
|
|
|
2025-02-02 10:46:06 +08:00
|
|
|
gtag('config', 'G-PX1C92V5L7');
|
|
|
|
</script>
|
2025-01-23 19:49:59 +08:00
|
|
|
|
2025-02-02 10:46:06 +08:00
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7296634171837358"
|
|
|
|
crossorigin="anonymous"></script>
|
2025-01-24 09:04:41 +08:00
|
|
|
|
2025-01-19 01:13:59 +08:00
|
|
|
</head>
|
|
|
|
|
2025-01-20 18:02:28 +08:00
|
|
|
<body class="min-h-screen bg-base-100 font-sans">
|
|
|
|
<!-- 导航栏 -->
|
2025-02-11 15:28:42 +08:00
|
|
|
<%= render 'layouts/navbar' %> <!-- 使用局部渲染 -->
|
|
|
|
|
2025-01-19 22:08:05 +08:00
|
|
|
|
2025-01-20 18:02:28 +08:00
|
|
|
<!-- 主要内容 -->
|
2025-02-11 14:45:23 +08:00
|
|
|
<main class="pt-16 relative">
|
2025-02-11 15:52:58 +08:00
|
|
|
<%= render 'layouts/flash_message' %>
|
2025-02-11 14:45:23 +08:00
|
|
|
|
2025-01-19 01:13:59 +08:00
|
|
|
<%= yield %>
|
2025-01-19 22:08:05 +08:00
|
|
|
</main>
|
|
|
|
|
2025-02-14 09:47:01 +08:00
|
|
|
<%= render 'layouts/footer' %>
|
2025-01-26 02:27:19 +08:00
|
|
|
|
2025-01-19 01:13:59 +08:00
|
|
|
</body>
|
|
|
|
</html>
|