question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When creating a site I want to set description, image, title set on page (and have default values) so that have good SEO

There are really two parts to this:

  • Site-wide SEO: common and/or default SEO values for the whole site (and especially the front page)
  • Per-page SEO: SEO per page that overrides default SEO values. These would derive from frontmatter and/or be calculated e.g. title from markdown first heading etc (nb: any work to calculate title etc is out of scope for this issue - this issue can assume those values are available)

Priority right now is the first

We can follow the work we did in web3 for this e.g. https://github.com/life-itself/web3/issues/114

Acceptance

Proposed Default Next SEO (note other SEO values would get set from other config values e.g. title and description)

nextSeo: {
    openGraph: {
      images: [
        {
          url: "https://web3.lifeitself.us/img/home-page-screenshot-social-preview.png",
          alt: "",
          width: 1200,
          height: 627,
          type: "image/jpg",
        },
      ],
    },
    twitter: {
      handle: "@forlifeitself",
      site: "web3.lifeitself.us",
      cardType: "summary_large_image",
    },
  },

Tasks

  • Create docs

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
olaywaycommented, Aug 24, 2022

@olayway @khalilcodes i would keep these as we could use these outside of SEO, at least the title would be used in the navbar by default i think if you hadn’t set a logo or something. Description maybe not so much. That said, for now i think we could go this way - i actually think @olayway is right that we move this to the SEO and have a separate value (if we need it) for say the navbar.

Yup, I’d keep SEO-related stuff from other (e.g. presentation-related) stuff separate.

1reaction
rufuspollockcommented, Aug 24, 2022

I don’t think it makes much sense to have title and description properties outside of nextSeo property. They are used for SEO only and are also listed as options of NextSeo package, so I’d keep them where other SEO config options are. Also, currently we’re not allowing users to just use title they set. Instead, titleTemplate of the following form is forced: '%s | ’ + siteConfig.title

@olayway @khalilcodes i would keep these as we could use these outside of SEO, at least the title would be used in the navbar by default i think if you hadn’t set a logo or something. Description maybe not so much. That said, for now i think we could go this way - i actually think @olayway is right that we move this to the SEO and have a separate value (if we need it) for say the navbar.

And btw @olayway very good, thorough comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google SEO Help and Support | Google Search Central
Get SEO support from Google Search Specialists. We can help with search appearance and rankings, rich results, security, Search Console, and more.
Read more >
SEO Support & Help Guide | Do You Need an SEO Agency?
Investing in professional SEO support is a big decision. Learn when to hire an SEO, plus how to hire an SEO consultant or...
Read more >
Search Engine Optimization (SEO) | Help Center | Wix.com
Search Engine Optimization (SEO) means making your website more readable to search engines so they can better index your site. This improves search...
Read more >
What is SEO? - Support | one.com
SEO stands for Search Engine Optimization. It is the process of improving a website for search engines so it ranks higher in search......
Read more >
Managing SEO in WordPress | WordPress.com Support
WordPress.com is very search friendly by default. This support guide covers tips for showing up in search engines and SEO (search engine optimization)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found