1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-07-02 17:42:39 +00:00

Add some structured data entities (#2106)

This commit is contained in:
2023-03-29 14:27:39 -05:00
committed by GitHub
parent 77c073c602
commit d1c4abcd4f
10 changed files with 304 additions and 42 deletions

View File

@ -67,3 +67,8 @@
<strong>Visit privacyguides.org for current advice.</strong>
</a>
{% else %}{% endif %}{% endblock %}
{% block extrahead %}{% if page and page.meta and page.meta.schema %}
<script type="application/ld+json">
{{ page.meta.schema|tojson }}
</script>
{% endif %}{% endblock %}

View File

@ -20,7 +20,7 @@
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
#} -->
{% extends "schema.html" %}
{% extends "main.html" %}
{% block extrahead %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/home.css?v=3.3.0' | url }}">
{{ super() }}

View File

@ -20,43 +20,4 @@
IN THE SOFTWARE.
#} -->
{% extends "main.html" %}
{% block extrahead %}
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "Organization",
"@id": "https://www.privacyguides.org/",
"name": "Privacy Guides",
"url": "https://www.privacyguides.org/en/about/",
"logo": "https://www.privacyguides.org/en/assets/brand/png/square/pg-yellow.png",
"sameAs": [
"https://twitter.com/privacy_guides",
"https://github.com/privacyguides",
"https://www.wikidata.org/wiki/Q111710163",
"https://opencollective.com/privacyguides",
"https://www.youtube.com/@privacyguides",
"https://mastodon.neat.computer/@privacyguides"
]
},
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "{{ config.site_url }}",
"sameAs": [
"https://www.privacyguides.org/",
"https://twitter.com/privacy_guides",
"https://github.com/privacyguides"
],
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "{{ config.site_url }}?q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
]
</script>
{% endblock %}
{# This file can be deleted when it is no longer referenced by localized sites #}