This commit is contained in:
Ou
2025-03-15 13:03:49 +08:00
parent a020f3fa12
commit 9a7485b2c5
5 changed files with 34 additions and 75 deletions
+10 -15
View File
@@ -10,40 +10,35 @@
<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" />
<meta property="og:url" content="https://newsnow.busiyi.world" />
<meta property="og:image" content="https://newsnow.busiyi.world/og-image.png" />
<!-- 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="twitter:image" content="https://newsnow.busiyi.world/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",
"url": "https://newsnow.busiyi.world",
"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>
@@ -52,7 +47,7 @@
gtag('js', new Date());
gtag('config', 'G-EL9HHYE5LC');
</script>
<script>
function safeParseString(str) {
try {
Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1200" height="630" viewBox="0 0 1200 630" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="1200" height="630" fill="#F14D42"/>
<text x="50%" y="45%" text-anchor="middle" font-family="Arial, sans-serif" font-size="72" fill="white" font-weight="bold">NewsNow</text>
<text x="50%" y="60%" text-anchor="middle" font-family="Arial, sans-serif" font-size="36" fill="white">实时新闻聚合阅读器</text>
</svg>

Before

Width:  |  Height:  |  Size: 484 B

+1 -8
View File
@@ -1,16 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://shishixinwen.news/</loc>
<loc>https://newsnow.busiyi.world/</loc>
<lastmod>2025-01-18</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://shishixinwen.news/search</loc>
<lastmod>2025-01-18</lastmod>
<changefreq>always</changefreq>
<priority>0.8</priority>
</url>
<!-- 添加其他重要页面 -->
</urlset>
+23 -46
View File
@@ -261,52 +261,29 @@ function NewsListHot({ items }: { items: NewsItem[] }) {
function NewsListTimeLine({ items }: { items: NewsItem[] }) {
const { width } = useWindowSize()
return (
<>
<script type="application/ld+json">
{JSON.stringify({
"@context": "https://schema.org",
"@type": "ItemList",
"itemListElement": items.map((item, index) => ({
"@type": "ListItem",
"position": index + 1,
"item": {
"@type": "NewsArticle",
"headline": item.title,
"url": width < 768 ? item.mobileUrl || item.url : item.url,
"datePublished": item.pubDate || item?.extra?.date,
"publisher": {
"@type": "Organization",
"name": item.source || "NewsNow",
"url": item.sourceUrl || "https://shishixinwen.news",
},
},
})),
})}
</script>
<ol className="border-s border-neutral-400/50 flex flex-col ml-1">
{items?.map(item => (
<li key={`${item.id}-${item.pubDate || item?.extra?.date || ""}`} className="flex flex-col">
<span className="flex items-center gap-1 text-neutral-400/50 ml--1px">
<span className="">-</span>
<span className="text-xs text-neutral-400/80">
{(item.pubDate || item?.extra?.date) && <NewsUpdatedTime date={(item.pubDate || item?.extra?.date)!} />}
</span>
<span className="text-xs text-neutral-400/80">
<ExtraInfo item={item} />
</span>
<ol className="border-s border-neutral-400/50 flex flex-col ml-1">
{items?.map(item => (
<li key={`${item.id}-${item.pubDate || item?.extra?.date || ""}`} className="flex flex-col">
<span className="flex items-center gap-1 text-neutral-400/50 ml--1px">
<span className="">-</span>
<span className="text-xs text-neutral-400/80">
{(item.pubDate || item?.extra?.date) && <NewsUpdatedTime date={(item.pubDate || item?.extra?.date)!} />}
</span>
<a
className={$("ml-2 px-1 hover:bg-neutral-400/10 rounded-md visited:(text-neutral-400/80)")}
href={width < 768 ? item.mobileUrl || item.url : item.url}
title={item.extra?.hover}
target="_blank"
rel="noopener noreferrer"
>
{item.title}
</a>
</li>
))}
</ol>
</>
<span className="text-xs text-neutral-400/80">
<ExtraInfo item={item} />
</span>
</span>
<a
className={$("ml-2 px-1 hover:bg-neutral-400/10 rounded-md visited:(text-neutral-400/80)")}
href={width < 768 ? item.mobileUrl || item.url : item.url}
title={item.extra?.hover}
target="_blank"
rel="noopener noreferrer"
>
{item.title}
</a>
</li>
))}
</ol>
)
}