Skip to content

Add Open Graph image #32

Open
Open

Description

@TomoyaKuroda

It's fun to add Open Graph image.
Reference https://kaydee.net/blog/open-graph-image/

Activity

  1. mary-boti commented on Feb 9, 2021

    @mary-boti
    Contributor

    Interesting idea! I am kinda very new to programming hahah could you pleas give me more details on your suggestion. Is it only for Facebook? Thanks!!

  2. TomoyaKuroda commented on Feb 13, 2021

    @TomoyaKuroda
    ContributorAuthor

    @mary-boti I think Facebook and Twitter are enough. You can use https://realfavicongenerator.net/social/ to generate the image with https://codementoring.co/images/logo.svg, but you need to convert the SVG to png first otherwise this tool doesn't work 😀. And you need to add the converted image in the assets folder. and then, you also need to add this code in _config.yml

    # SEO
    defaults:
      - scope:
          path: ""
        values:
          image: /assets/image-file-name.jpg
    

    Once this change is approved and merged, you will see the image here https://cards-dev.twitter.com/validator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions