This commit is contained in:
toom1996
2025-07-24 17:03:05 +08:00
parent 3ba9239522
commit 915f457afd
7 changed files with 22 additions and 13 deletions

View File

@ -10,6 +10,16 @@ main {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.gray {
color: #999;
}
.font-14 {
font-size: 14px;
}
@media only screen and (max-width: 767.98px) { @media only screen and (max-width: 767.98px) {
main { main {
padding: 1rem; padding: 1rem;

View File

@ -6,8 +6,8 @@ const {data} = Astro.props;
{ {
data.map((item: { title: string; link: string }) => { data.map((item: { title: string; link: string }) => {
return ( return (
<span class="separator"> > </span> <span class="separator"> &gt; </span>
<a title={item.title} href={item.link}>{item.title}</a> <span>{item.link ? <a title={item.title} href={item.link}>{item.title}</a> : item.title}</span>
) )
}) })
} }

View File

@ -2,7 +2,7 @@
<html lang="en" > <html lang="en" >
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>404 - 飞驰营销</title> <title>页面未找到 | 飞驰营销</title>
</head> </head>
<body> <body>
<div class="number">404</div> <div class="number">404</div>

View File

@ -23,7 +23,7 @@ const {
page = Astro.locals?.column_page || 1, // 页码 page = Astro.locals?.column_page || 1, // 页码
columnDesc = Astro.locals?.column_data?.desc || `霍尔果斯飞驰广告有限公司致力于分享从基础到进阶的SEO优化策略、广告投放方法、内容运营技巧和网站转化率提升方案。` , columnDesc = Astro.locals?.column_data?.desc || `霍尔果斯飞驰广告有限公司致力于分享从基础到进阶的SEO优化策略、广告投放方法、内容运营技巧和网站转化率提升方案。` ,
breadcrumb = Astro.locals?.column_data?.item || [{ title: "资讯", link: "/news" }], // 面包屑导航 breadcrumb = Astro.locals?.column_data?.item || [{ title: "资讯", link: "/news" }], // 面包屑导航
filter = Astro.locals?.column_data?.filter || [], // 面包屑导航 filter = Astro.locals?.column_data?.filter || [], // 文章筛选条件
} = Astro.props; } = Astro.props;
const { code, data, total = 0, hot } = await newsIndex(config.id, limit, page, filter); const { code, data, total = 0, hot } = await newsIndex(config.id, limit, page, filter);
if (data.length == 0 || code !== 0) { if (data.length == 0 || code !== 0) {
@ -78,7 +78,7 @@ if (data.length == 0 || code !== 0) {
<div class="entry-meta news-card-meta"> <div class="entry-meta news-card-meta">
<span class="posted-on"> <span class="posted-on">
<span> <span>
<time class="entry-date published"> <time class="entry-date published gray font-14">
{e.created_at} {e.created_at}
</time> </time>
</span> </span>

View File

@ -50,7 +50,7 @@ const bytedanceData = formatDate(data.created_at)
<Layout <Layout
desc={data.description} desc={data.description}
keywords={data.keywords} keywords={data.keywords}
title={`${data.title} - ${config.app_name}`} title={`${data.title}`}
bytedance={` bytedance={`
<meta property="bytedance:published_time" content="${bytedanceData}" /> <meta property="bytedance:published_time" content="${bytedanceData}" />
<meta property="bytedance:lrDate_time" content="${bytedanceData}" /> <meta property="bytedance:lrDate_time" content="${bytedanceData}" />
@ -79,8 +79,8 @@ const bytedanceData = formatDate(data.created_at)
<h1 class="title" title={data.title}>{data.title}</h1> <h1 class="title" title={data.title}>{data.title}</h1>
<div class="meta"> <div class="meta">
<span class="meta-pub">{data.created_at}</span> <span class="meta-pub">{data.created_at}</span>
<a href={data.column_tag_url}><span>{data.column_tag}</span></a> <a href={data.column_tag_url}><span>#{data.column_tag}</span></a>
<a href={data.second_column_url}><span>{data.second_column}</span></a> <a href={data.second_column_tag_url}><span>#{data.second_column_tag}</span></a>
</div> </div>
</header> </header>
<article class="news-detail-content"> <article class="news-detail-content">
@ -277,7 +277,7 @@ const bytedanceData = formatDate(data.created_at)
border-bottom: none !important; border-bottom: none !important;
padding: unset !important; padding: unset !important;
font-weight: unset; font-weight: unset;
a { a, span {
color: #999 !important; color: #999 !important;
font-size: 14px; font-size: 14px;
} }
@ -476,7 +476,7 @@ const bytedanceData = formatDate(data.created_at)
.related-news ul { .related-news ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin-top: 1rem;
} }
.related-news li { .related-news li {

View File

@ -33,7 +33,6 @@ export class JsonRpcClient {
params, params,
id: Date.now(), id: Date.now(),
} }
console.log(req)
const message = JSON.stringify(req) + '\n' const message = JSON.stringify(req) + '\n'

View File

@ -65,8 +65,8 @@ export interface InewsDetail {
updated_at: string updated_at: string
column_tag: string column_tag: string
column_tag_url: string column_tag_url: string
second_column: string second_column_tag: string
second_column_url: string second_column_tag_url: string
about: { about: {
id: number id: number
title: string title: string