This commit is contained in:
toom1996
2025-07-18 18:26:52 +08:00
parent ff0d413783
commit b799219db8
3 changed files with 13 additions and 7 deletions

View File

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

View File

@ -241,7 +241,7 @@ const { code, data } = await newsIndex(config.id, 3, 1);
</h3>
</div>
</div>
<a href={item.column_tag_url}><span class="label label-success">{item.column_tag}</span></a>
<a title={`${item.column_tag}`} href={item.column_tag_url}><span class="label label-success">{item.column_tag}</span></a>
</a>
</div>
</div>

View File

@ -11,16 +11,12 @@ if (!slug) {
return Astro.redirect("/404");
}
if (slug == "seo_tech") {
return Astro.rewrite("/");
}
const { code, data } = await newsDetail(slug, config);
if (!data || code !== 0) {
return Astro.redirect("/404");
}
---
---
<Layout
desc={data.description}
keywords={data.keywords}
@ -114,6 +110,15 @@ if (!data || code !== 0) {
</aside>
</main>
</Layout>
<script is:inline>
(function(){
var el = document.createElement("script");
el.src = "https://lf1-cdn-tos.bytegoofy.com/goofy/ttzz/push.js?74fdd2d9aa57dad0b56f11280dc2fb7f7991cc1ed11bf34132b851984d3f927c3871f0d6a9220c04b06cd03d5ba8e733fe66d20303562cd119c1d6f449af6378";
el.id = "ttzz";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(el, s);
})(window)
</script>
<style is:inline>
@media (min-width: 1200px) and (max-width: 1500px) {
.header_full_banner {
@ -236,6 +241,7 @@ if (!data || code !== 0) {
.breadcrumb {
border-bottom: none !important;
padding: unset !important;
font-weight: unset;
}
header > h1 {