- Include SDK script for user activity collection - Initialize SDK with specific IDs This change integrates a data collection tool into the application, allowing for improved tracking of user interactions. The SDK will help gather actionable insights for enhancing user experience.
79 lines
2.7 KiB
Plaintext
79 lines
2.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>">
|
|
<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">
|
|
<%= display_meta_tags(
|
|
site: 'TodayAIWeather',
|
|
reverse: true,
|
|
og: {
|
|
site_name: 'TodayAIWeather',
|
|
type: 'website',
|
|
keywords: "ai, ai web, ai art, ai weather, weather art, AI visualization, today ai weather",
|
|
url: request.original_url
|
|
},
|
|
alternate: {
|
|
"en" => url_for(locale: 'en'),
|
|
"zh-CN" => url_for(locale: 'zh-CN'),
|
|
"ja" => url_for(locale: 'ja'),
|
|
"ko" => url_for(locale: 'ko')
|
|
}
|
|
) %>
|
|
<%= 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" %>
|
|
<%= auto_discovery_link_tag :rss, rss_feed_url(format: :rss), title: 'RSS Feed' %>
|
|
|
|
<script defer data-domain="todayaiweather.com" src="https://plausible.frytea.com/js/script.js"></script>
|
|
|
|
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
|
|
<script>LA.init({id:"3LnGCk1ewyu7wHTO",ck:"3LnGCk1ewyu7wHTO"})</script>
|
|
|
|
<script defer src="https://busuanzi.frytea.com/js"></script>
|
|
|
|
<!-- 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>
|
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7296634171837358"
|
|
crossorigin="anonymous"></script>
|
|
|
|
</head>
|
|
|
|
<body class="min-h-screen bg-base-100 font-sans">
|
|
<!-- 导航栏 -->
|
|
<%= render 'layouts/navbar' %> <!-- 使用局部渲染 -->
|
|
|
|
|
|
<!-- 主要内容 -->
|
|
<main class="pt-16 relative">
|
|
<%= render 'layouts/flash_message' %>
|
|
|
|
<%= yield %>
|
|
</main>
|
|
|
|
<%= render 'layouts/footer' %>
|
|
|
|
</body>
|
|
</html>
|