Finish OpenGraph / SEO metadata #4

Closed
opened 1 year ago by circlebuilder · 4 comments
Owner

The code in _includes/seo.html needs to be completed, so that it automatically adds the appropriate OpenGraph, Twitter and schema.org metadata. Part of this is already present, but it is unfinished.

The code in `_includes/seo.html` needs to be completed, so that it automatically adds the appropriate [OpenGraph](https://ogp.me/), Twitter and schema.org metadata. Part of this is already present, but it is unfinished.
circlebuilder added the
help wanted
contribution welcome
labels 1 year ago
Poster
Owner
Using following inputs as reference: - https://ogp.me/ - https://webcode.tools/ - https://technicalseo.com/tools/schema-markup-generator/ - https://www.matuzo.at/blog/html-boilerplate/ - https://github.com/joshbuchea/HEAD - https://moz.com/blog/writing-structured-data-guide Schema.org reference: - https://schema.org/Organization - https://schema.org/Article - https://schema.org/ProfilePage Using code from (mentioned in Credits page): - https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/seo.html
Poster
Owner

This is an example of the JSON-LD generated for a Post page (schema.org Article):

    {
      "@context":"https://schema.org",
      "@type": "Article",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://fedi.foundation/2021/04/fediverse-spiral-island-analogy/"
      },
      "headline": "Fediverse.. The Spiral Island Analogy",
      "name": "Fediverse.. The Spiral Island Analogy",
      "description": "The Fediverse is like a hand-made island. [..].",
      "keywords": "vision",
      "image": "https://fedi.foundation/richart-sowa-spiral-island.jpeg",
      "datePublished": "2021-04-01T00:00:00+02:00",
      "author": {
        "@type": "Person",
        "name": "Arnold Schrijver",
        "sameAs": "https://fedi.foundation/people/aschrijver/"
      },
      "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/"
      "publisher": {
        "@type": "Organization",
        "name": "Fedi Foundation",
        "logo": {
          "@type": "ImageObject",
          "url": "https://fedi.foundation/assets/images/android-icon-512x512.png"
        }
      }
    }
This is an example of the JSON-LD generated for a Post page (schema.org `Article`): ```json { "@context":"https://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://fedi.foundation/2021/04/fediverse-spiral-island-analogy/" }, "headline": "Fediverse.. The Spiral Island Analogy", "name": "Fediverse.. The Spiral Island Analogy", "description": "The Fediverse is like a hand-made island. [..].", "keywords": "vision", "image": "https://fedi.foundation/richart-sowa-spiral-island.jpeg", "datePublished": "2021-04-01T00:00:00+02:00", "author": { "@type": "Person", "name": "Arnold Schrijver", "sameAs": "https://fedi.foundation/people/aschrijver/" }, "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/" "publisher": { "@type": "Organization", "name": "Fedi Foundation", "logo": { "@type": "ImageObject", "url": "https://fedi.foundation/assets/images/android-icon-512x512.png" } } } ```
Poster
Owner

This is an example of the JSON-LD generated for a Profile page (schema.org ProfilePage):

    {
      "@context":"https://schema.org",
      "@type": "ProfilePage",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://fedi.foundation/people/sal/"
      },
      "about": {
        "@type": "Person",
        "name": "Salta Adrara",
        "url": "https://sal.rocks",
        "email": "sal2.adrara@protonmail.com",
        "sameAs": ["https://socialhub.activitypub.rocks/u/sal2/summary","https://fosstodon.org/@sal2345678","https://twitter.com/sal2345678","https://linkedin.com/in/sal2345678","https://keyoxide.org/9f0048ac0b23304e1aa7e994909f6bd6f80f478c","https://keybase.io/sal2345678","https://github.com/sal2345678","https://gitlab.com/sal2345678","https://codeberg.org/sal2345678","https://sourcehut.org/sal2345678","https://git.sal.rocks/sal2345678"]
      },
      "accountablePerson": {
        "@type": "Person",
        "name": "Salta Adrara"
      },
      "copyrightHolder": {
        "@type": "Person",
        "name": "Salta Adrara"
      },
      "name": "Salta Adrara",
      "image": "",
      "description": "Hi, I am Salta, the imaginary person that has all their possible profile fields filled in.",
      "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
      "publisher": {
        "@type": "Organization",
        "name": "Fedi Foundation",
        "logo": {
          "@type": "ImageObject",
          "url": "https://fedi.foundation/assets/images/android-icon-512x512.png"
        }
      }
    }
This is an example of the JSON-LD generated for a Profile page (schema.org `ProfilePage`): ```json { "@context":"https://schema.org", "@type": "ProfilePage", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://fedi.foundation/people/sal/" }, "about": { "@type": "Person", "name": "Salta Adrara", "url": "https://sal.rocks", "email": "sal2.adrara@protonmail.com", "sameAs": ["https://socialhub.activitypub.rocks/u/sal2/summary","https://fosstodon.org/@sal2345678","https://twitter.com/sal2345678","https://linkedin.com/in/sal2345678","https://keyoxide.org/9f0048ac0b23304e1aa7e994909f6bd6f80f478c","https://keybase.io/sal2345678","https://github.com/sal2345678","https://gitlab.com/sal2345678","https://codeberg.org/sal2345678","https://sourcehut.org/sal2345678","https://git.sal.rocks/sal2345678"] }, "accountablePerson": { "@type": "Person", "name": "Salta Adrara" }, "copyrightHolder": { "@type": "Person", "name": "Salta Adrara" }, "name": "Salta Adrara", "image": "", "description": "Hi, I am Salta, the imaginary person that has all their possible profile fields filled in.", "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/", "publisher": { "@type": "Organization", "name": "Fedi Foundation", "logo": { "@type": "ImageObject", "url": "https://fedi.foundation/assets/images/android-icon-512x512.png" } } } ```
Poster
Owner

This is an example of the JSON-LD metadata generated on the landing page (schema.org Organization):

    {
      "@context":"https://schema.org",
      "@type": "Organization",
      "name": "Fedi Foundation",
      "description": "Welcome to Federated Diversity Foundation. We strive to empower SocialHub community and the Fediverse they build.",
      "slogan": "United in Diversity"
      "logo": "https://fedi.foundation/assets/images/android-icon-512x512.png",
      "image": "https://fedi.foundation/assets/images/fedi-foundation-logo-black.png"
      "url": "https://fedi.foundation/",
    }
This is an example of the JSON-LD metadata generated on the landing page (schema.org `Organization`): ```json { "@context":"https://schema.org", "@type": "Organization", "name": "Fedi Foundation", "description": "Welcome to Federated Diversity Foundation. We strive to empower SocialHub community and the Fediverse they build.", "slogan": "United in Diversity" "logo": "https://fedi.foundation/assets/images/android-icon-512x512.png", "image": "https://fedi.foundation/assets/images/fedi-foundation-logo-black.png" "url": "https://fedi.foundation/", } ```
circlebuilder referenced this issue from a commit 1 year ago
circlebuilder closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.