more blogs

This commit is contained in:
rustdesk committed 2026-07-09 11:16:29 +08:00
1 parent 8e5b554639
commit bc29d68890
124 files changed
+5849 -6

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
---
export interface Props {
items?: Array<{ question: string; answer: string }>;
}
const { items = [] } = Astro.props;
---
{
items.length > 0 && (
<section aria-labelledby="post-faq-heading">
<h2 id="post-faq-heading">Frequently asked questions</h2>
<div>
{items.map((item) => (
<details>
<summary>{item.question}</summary>
<p>{item.answer}</p>
</details>
))}
</div>
</section>
)
}
@@ -136,6 +136,11 @@ if (type === 'software' || pageKind === 'pricing') {
}
if (type === 'article' && article) {
const articleAuthorSchema =
!article.author || article.author === 'RustDesk Team'
? { '@id': `${siteOrigin}/#organization` }
: { '@type': 'Person', name: article.author };
graphItems.push({
'@type': 'BlogPosting',
'@id': `${currentUrl}#article`,
@@ -144,10 +149,7 @@ if (type === 'article' && article) {
url: currentUrl,
datePublished: article.publishDate?.toISOString(),
dateModified: (article.updateDate || article.publishDate)?.toISOString(),
author: {
'@type': 'Person',
name: article.author || 'RustDesk Team',
},
author: articleAuthorSchema,
publisher: { '@id': `${siteOrigin}/#organization` },
...(article.image
? {