2025-01-19 01:13:59 +08:00
|
|
|
<!DOCTYPE html>
|
2025-01-23 17:46:37 +08:00
|
|
|
<html lang="en">
|
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',
|
|
|
|
url: request.original_url
|
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
"zh-CN" => url_for(locale: 'zh-CN'),
|
|
|
|
"en" => url_for(locale: 'en')
|
|
|
|
}
|
|
|
|
) %>
|
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 %>
|
|
|
|
<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
|
|
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
2025-01-23 17:46:37 +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-01-26 02:08:48 +08:00
|
|
|
<script defer src="https://busuanzi.frytea.com/js"></script>
|
|
|
|
|
2025-01-23 19:49:59 +08:00
|
|
|
<!-- Google tag (gtag.js) -->
|
|
|
|
<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());
|
|
|
|
|
|
|
|
gtag('config', 'G-PX1C92V5L7');
|
|
|
|
</script>
|
|
|
|
|
2025-01-24 09:04:41 +08:00
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7296634171837358"
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
|
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">
|
|
|
|
<!-- 导航栏 -->
|
|
|
|
<div class="navbar bg-base-100/80 backdrop-blur-sm fixed top-0 z-50">
|
2025-01-19 22:08:05 +08:00
|
|
|
<div class="container mx-auto">
|
|
|
|
<div class="flex-1">
|
2025-01-20 18:02:28 +08:00
|
|
|
<%= link_to root_path, class: "text-2xl font-display font-bold hover:text-primary transition-colors" do %>
|
2025-01-25 00:34:20 +08:00
|
|
|
Today AI Weather
|
2025-01-20 18:02:28 +08:00
|
|
|
<% end %>
|
2025-01-19 22:08:05 +08:00
|
|
|
</div>
|
|
|
|
<div class="flex-none">
|
2025-01-20 18:02:28 +08:00
|
|
|
<%= link_to "Cities", cities_path, class: "btn btn-ghost font-sans" %>
|
2025-01-23 14:10:13 +08:00
|
|
|
<%= link_to "Arts", arts_path, class: "btn btn-ghost font-sans" %>
|
2025-01-19 22:08:05 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2025-01-20 18:02:28 +08:00
|
|
|
<!-- 主要内容 -->
|
|
|
|
<main class="pt-16">
|
2025-01-19 01:13:59 +08:00
|
|
|
<%= yield %>
|
2025-01-19 22:08:05 +08:00
|
|
|
</main>
|
|
|
|
|
2025-01-20 18:02:28 +08:00
|
|
|
<!-- 页脚 -->
|
2025-01-26 02:27:19 +08:00
|
|
|
<footer class="footer footer-center p-8 bg-base-200 text-base-content">
|
2025-01-26 02:08:48 +08:00
|
|
|
<div class="container mx-auto flex flex-col gap-2">
|
2025-01-26 02:36:26 +08:00
|
|
|
<div id="busuanzi_container" class="text-xs opacity-70">
|
2025-01-26 02:27:19 +08:00
|
|
|
<div class="space-x-2">
|
|
|
|
<span>Page Views: <span id="busuanzi_value_page_pv"></span></span>
|
|
|
|
<span>|</span>
|
|
|
|
<span>Page Visitors: <span id="busuanzi_value_page_uv"></span></span>
|
|
|
|
<span>|</span>
|
|
|
|
<span>Total Views: <span id="busuanzi_value_site_pv"></span></span>
|
|
|
|
<span>|</span>
|
|
|
|
<span>Total Visitors: <span id="busuanzi_value_site_uv"></span></span>
|
2025-01-26 02:19:56 +08:00
|
|
|
</div>
|
2025-01-26 02:08:48 +08:00
|
|
|
</div>
|
|
|
|
|
2025-01-26 02:27:19 +08:00
|
|
|
<p class="font-display opacity-80">
|
2025-01-26 00:35:08 +08:00
|
|
|
Copyright © 2024 - All rights reserved by AI Weather Art
|
|
|
|
</p>
|
2025-01-19 22:08:05 +08:00
|
|
|
</div>
|
|
|
|
</footer>
|
2025-01-26 02:27:19 +08:00
|
|
|
|
2025-01-19 01:13:59 +08:00
|
|
|
</body>
|
|
|
|
</html>
|