Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Google structured data to each view #12

@ricco386

Description

@ricco386

Google structured data: https://developers.google.com/search/docs/guides/intro-structured-data

Actual data for views:

LDJSON_SPY = {
    "@type": "Organization",
    "name": "SPy o. z.",
    "url": "https://spy.pycon.sk",
    "logo": "https://spy.pycon.sk/img/logo/spy-logo.png",
    "sameAs": [
        "https://facebook.com/pyconsk",
        "https://twitter.com/pyconsk",
        "https://www.linkedin.com/company/spy-o--z-",
        "https://github.com/pyconsk",
    ]
}

LDJSON_PYCON = {
    "@context": "http://schema.org",
    "@type": "Event",
    "name": EVENT,
    "description": gettext("PyCon will be back at Slovakia in 2019 again. PyCon SK is a community-organized conference for the Python programming language."),
    "startDate": "2019-03-22T9:00:00+01:00",
    "endDate": "2019-03-24T18:00:00+01:00",
    "image": "/static/img/logo/pycon_long_2019.png",
    "location": {
        "@type": "Place",
        "name": "FIIT STU",
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "Ilkovičova 2",
            "addressLocality": "Bratislava 4",
            "postalCode": "842 16",
            "addressCountry": gettext("Slovak Republic")
        },
    },
    "url": DOMAIN,
    "workPerformed": {
        "@type": "CreativeWork",
        "name": EVENT,
        "creator": LDJSON_SPY
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions