refactor: remove FAQPage JSON-LD structured data block

This commit is contained in:
NetworkCats
2026-03-20 06:20:50 +08:00
parent f2a6678bf5
commit ec91cd7738
2 changed files with 2 additions and 90 deletions
-80
View File
@@ -49,86 +49,6 @@
"image": "https://{{ site_domain }}/static/icons/android-chrome-512x512.png"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "{{ t_faq_cli_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_cli_a }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_ipv46_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_ipv46_a }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_json_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_json_a }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_automate_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_automate_a1 }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_data_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_data_a }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_selfhost_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_selfhost_a }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_diff_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_diff_a1 }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_stable_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_stable_a1 }}"
}
},
{
"@type": "Question",
"name": "{{ t_faq_sponsor_q }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ t_faq_sponsor_a }}"
}
}
]
}
</script>
{% endif %}
{% endblock %}
+2 -10
View File
@@ -1138,21 +1138,13 @@ async fn html_contains_jsonld_on_landing_page() {
"landing page should contain WebApplication JSON-LD"
);
assert!(
body.contains("\"@type\": \"FAQPage\""),
"landing page should contain FAQPage JSON-LD"
!body.contains("\"@type\": \"FAQPage\""),
"landing page should not contain FAQPage JSON-LD"
);
assert!(
body.contains("\"applicationCategory\": \"UtilitiesApplication\""),
"WebApplication should have applicationCategory"
);
assert!(
body.contains("\"@type\": \"Question\""),
"FAQPage should contain Question entities"
);
assert!(
body.contains("\"@type\": \"Answer\""),
"FAQPage should contain Answer entities"
);
}
#[tokio::test]