mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-31 19:08:05 +08:00
f9dca9e20f
* feat(seo): enhance website SEO and add structured data - Add comprehensive meta tags for SEO and social sharing - Implement Schema.org structured data for news articles - Create sitemap.xml for better search engine indexing - Add og-image.svg for social media sharing - Update footer with categorized news sources - Remove redundant source links from news items - Add Google Analytics placeholder Meta tags: - Add SEO meta tags (description, keywords, robots) - Add Open Graph and Twitter Card meta tags - Update website domain to newsnow.majiajue.com Footer: - Organize news sources into categories - Add responsive grid layout - Improve accessibility with proper link attributes - Add dark mode support * chore: update domain and deployment configuration - Change domain from newsnow.majiajue.com to shishixinwen.news - Update Google Analytics tracking ID - Fix Windows deployment issues with cross-env - Add build output directory to wrangler commands Changes: - Update meta tags and structured data with new domain - Update sitemap.xml with new domain - Add cross-env for cross-platform compatibility - Update preview and deploy scripts with correct output path - Configure Google Analytics with actual tracking ID
85 lines
3.3 KiB
HTML
85 lines
3.3 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<!-- SEO Meta Tags -->
|
|
<meta name="description" content="NewsNow - 实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验" />
|
|
<meta name="keywords" content="新闻,科技新闻,实时新闻,新闻聚合,NewsNow" />
|
|
<meta name="author" content="NewsNow" />
|
|
<meta name="robots" content="index, follow" />
|
|
|
|
<!-- Open Graph Meta Tags -->
|
|
<meta property="og:title" content="NewsNow - 优雅的新闻聚合阅读器" />
|
|
<meta property="og:description" content="实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="https://shishixinwen.news" />
|
|
<meta property="og:image" content="https://shishixinwen.news/og-image.svg" />
|
|
|
|
<!-- Twitter Card Meta Tags -->
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="NewsNow - 优雅的新闻聚合阅读器" />
|
|
<meta name="twitter:description" content="实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验" />
|
|
<meta name="twitter:image" content="https://shishixinwen.news/og-image.svg" />
|
|
|
|
<meta name="theme-color" content="#F14D42" />
|
|
<link rel="preload" href="/Baloo2-Bold.subset.ttf" as="font" type="font/ttf" crossorigin>
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180" />
|
|
|
|
<!-- Schema.org markup for Google -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
"name": "NewsNow",
|
|
"url": "https://shishixinwen.news",
|
|
"description": "实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验",
|
|
"potentialAction": {
|
|
"@type": "SearchAction",
|
|
"target": "https://shishixinwen.news/search?q={search_term_string}",
|
|
"query-input": "required name=search_term_string"
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<!-- Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EL9HHYE5LC"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'G-EL9HHYE5LC');
|
|
</script>
|
|
|
|
<script>
|
|
function safeParseString(str) {
|
|
try {
|
|
return JSON.parse(str)
|
|
} catch {
|
|
return ""
|
|
}
|
|
}
|
|
const theme = safeParseString(localStorage.getItem("color-scheme")) || "auto"
|
|
const isDark = window.matchMedia("(prefers-color-scheme: dark)").matches
|
|
if (theme === "auto" ? isDark : theme === "dark") {
|
|
document.documentElement.classList.add("dark")
|
|
}
|
|
|
|
const query = new URLSearchParams(window.location.search)
|
|
if (query.has("login") && query.has("user") && query.has("jwt")) {
|
|
localStorage.setItem("user", query.get("user"))
|
|
localStorage.setItem("jwt", JSON.stringify(query.get("jwt")))
|
|
window.history.replaceState({}, document.title, window.location.pathname)
|
|
}
|
|
</script>
|
|
<title>NewsNow</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
|
|
</html> |