mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
refactor: remove FAQPage JSON-LD structured data block
This commit is contained in:
@@ -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
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user