update
This commit is contained in:
@ -10,6 +10,16 @@ main {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
|
||||
.gray {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.font-14 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 767.98px) {
|
||||
main {
|
||||
padding: 1rem;
|
||||
|
@ -6,8 +6,8 @@ const {data} = Astro.props;
|
||||
{
|
||||
data.map((item: { title: string; link: string }) => {
|
||||
return (
|
||||
<span class="separator"> > </span>
|
||||
<a title={item.title} href={item.link}>{item.title}</a>
|
||||
<span class="separator"> > </span>
|
||||
<span>{item.link ? <a title={item.title} href={item.link}>{item.title}</a> : item.title}</span>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<html lang="en" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>404 - 飞驰营销</title>
|
||||
<title>页面未找到 | 飞驰营销网</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="number">404</div>
|
||||
|
@ -23,7 +23,7 @@ const {
|
||||
page = Astro.locals?.column_page || 1, // 页码
|
||||
columnDesc = Astro.locals?.column_data?.desc || `霍尔果斯飞驰广告有限公司致力于分享从基础到进阶的SEO优化策略、广告投放方法、内容运营技巧和网站转化率提升方案。` ,
|
||||
breadcrumb = Astro.locals?.column_data?.item || [{ title: "资讯", link: "/news" }], // 面包屑导航
|
||||
filter = Astro.locals?.column_data?.filter || [], // 面包屑导航
|
||||
filter = Astro.locals?.column_data?.filter || [], // 文章筛选条件
|
||||
} = Astro.props;
|
||||
const { code, data, total = 0, hot } = await newsIndex(config.id, limit, page, filter);
|
||||
if (data.length == 0 || code !== 0) {
|
||||
@ -78,7 +78,7 @@ if (data.length == 0 || code !== 0) {
|
||||
<div class="entry-meta news-card-meta">
|
||||
<span class="posted-on">
|
||||
<span>
|
||||
<time class="entry-date published">
|
||||
<time class="entry-date published gray font-14">
|
||||
{e.created_at}
|
||||
</time>
|
||||
</span>
|
||||
|
@ -50,7 +50,7 @@ const bytedanceData = formatDate(data.created_at)
|
||||
<Layout
|
||||
desc={data.description}
|
||||
keywords={data.keywords}
|
||||
title={`${data.title} - ${config.app_name}`}
|
||||
title={`${data.title}`}
|
||||
bytedance={`
|
||||
<meta property="bytedance:published_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>
|
||||
<div class="meta">
|
||||
<span class="meta-pub">{data.created_at}</span>
|
||||
<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.column_tag_url}><span>#{data.column_tag}</span></a>
|
||||
<a href={data.second_column_tag_url}><span>#{data.second_column_tag}</span></a>
|
||||
</div>
|
||||
</header>
|
||||
<article class="news-detail-content">
|
||||
@ -277,7 +277,7 @@ const bytedanceData = formatDate(data.created_at)
|
||||
border-bottom: none !important;
|
||||
padding: unset !important;
|
||||
font-weight: unset;
|
||||
a {
|
||||
a, span {
|
||||
color: #999 !important;
|
||||
font-size: 14px;
|
||||
}
|
||||
@ -476,7 +476,7 @@ const bytedanceData = formatDate(data.created_at)
|
||||
.related-news ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.related-news li {
|
||||
|
@ -33,7 +33,6 @@ export class JsonRpcClient {
|
||||
params,
|
||||
id: Date.now(),
|
||||
}
|
||||
console.log(req)
|
||||
|
||||
const message = JSON.stringify(req) + '\n'
|
||||
|
||||
|
@ -65,8 +65,8 @@ export interface InewsDetail {
|
||||
updated_at: string
|
||||
column_tag: string
|
||||
column_tag_url: string
|
||||
second_column: string
|
||||
second_column_url: string
|
||||
second_column_tag: string
|
||||
second_column_tag_url: string
|
||||
about: {
|
||||
id: number
|
||||
title: string
|
||||
|
Reference in New Issue
Block a user