update
This commit is contained in:
@ -7,7 +7,7 @@ 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"> > </span>
|
||||||
<a href={item.link}>{item.title}</a>
|
<a title={item.title} href={item.link}>{item.title}</a>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ const { code, data } = await newsIndex(config.id, 3, 1);
|
|||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,16 +11,12 @@ if (!slug) {
|
|||||||
return Astro.redirect("/404");
|
return Astro.redirect("/404");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (slug == "seo_tech") {
|
|
||||||
return Astro.rewrite("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
const { code, data } = await newsDetail(slug, config);
|
const { code, data } = await newsDetail(slug, config);
|
||||||
if (!data || code !== 0) {
|
if (!data || code !== 0) {
|
||||||
return Astro.redirect("/404");
|
return Astro.redirect("/404");
|
||||||
}
|
}
|
||||||
---
|
|
||||||
|
|
||||||
|
---
|
||||||
<Layout
|
<Layout
|
||||||
desc={data.description}
|
desc={data.description}
|
||||||
keywords={data.keywords}
|
keywords={data.keywords}
|
||||||
@ -114,6 +110,15 @@ if (!data || code !== 0) {
|
|||||||
</aside>
|
</aside>
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</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>
|
<style is:inline>
|
||||||
@media (min-width: 1200px) and (max-width: 1500px) {
|
@media (min-width: 1200px) and (max-width: 1500px) {
|
||||||
.header_full_banner {
|
.header_full_banner {
|
||||||
@ -236,6 +241,7 @@ if (!data || code !== 0) {
|
|||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
border-bottom: none !important;
|
border-bottom: none !important;
|
||||||
padding: unset !important;
|
padding: unset !important;
|
||||||
|
font-weight: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
header > h1 {
|
header > h1 {
|
||||||
|
Reference in New Issue
Block a user