Thank you! For the newsletter, you can use a custom solution with Nodemailer or some third-party integrations such as Mailchimp, SendGrid, or beehiiv. I might do a tutorial on the topic if people are interested.
This is a solid starting point for sure. Ranking at the top also depends on other factors like content relevance, backlinks, and click-through rate but sometimes it just takes some time. A lot of sites I've built took a couple of days or weeks to position at the top of search results.
I've created a blog using Next.js with Sanity as the CMS. My aim is to develop a fully Japanese-language website, incorporating Japanese characters in the URL slugs to reflect the predominantly Japanese article titles. For instance, I'd like to implement URLs such as '/posts/こんにちは'. However, I'm encountering difficulties implementing this feature. While I've successfully implemented language switching using next-intl, I haven't found a solution for dynamically generating Japanese language slugs that work correctly in URLs. I would greatly appreciate any guidance or suggestions.
Hey! Nice work! So you want to have multilingual webiste, right? Basically, Next.js should be able to handle Unicode characters, including Japanese, in URL paths by default. However, some browsers might encode non-ASCII characters. For example, you could use a slugging function that works with Unicode characters. - You can try the `slugify` npm package, it supports Unicode slugs. - Then you can use it like this for example: function generateSlug(title) { return slugify(title, { lower: true, strict: true, locale: 'ja' }); } This will generate slugs that allow Japanese characters while keeping other parts of the slug URL-safe. - You can also use `slugify` in sanity schema: slugify: (input) => slugify(input, { lower: true, strict: true, locale: 'ja' }) - Also, make sure to update your `next.config.js` with locales: i18n: { locales: ['en', 'ja'], defaultLocale: 'ja', } I pan to update my blog tutorial with a multi-lang switch in the future, but in the meantime, I hope this helps!
Damn this was unexpectedly great tutorial
Fast and on point. Also good explanations. Keep it up!
Great tutorial man😊
Thank you! :)
learned a lot from this video, thank you so much. I would like to see more videos on seo with next js 🤗
Noted. I’m glad to hear that! :)
great video, thanks
Great content! thanks for sharing
Great. Thanks a million ♥
Amazing Man !. A lot Thanks
Very usefull informations, thanks bro
Thanks! You’re welcome!
thank you
Excellent work, I'll apply all these. Tell me what services I should use for newsletter feature. 🧡
Thank you! For the newsletter, you can use a custom solution with Nodemailer or some third-party integrations such as Mailchimp, SendGrid, or beehiiv. I might do a tutorial on the topic if people are interested.
@@codewalkempire this would be really cool
Very useful
Great success
everyone show basic seo so please show us some advance also
Thank you
can i apply this method and positioned in top pages of google ?
i have been doing everything lately , cant get above the 4th page on google.
This is a solid starting point for sure. Ranking at the top also depends on other factors like content relevance, backlinks, and click-through rate but sometimes it just takes some time. A lot of sites I've built took a couple of days or weeks to position at the top of search results.
Will the sitemap update automatically when a new post is added?
Yes, it will. getPosts function in the sitemap will pick any new post that is created
Como eu posso utilizar internacionalização nas metatags ? Tipo dependendo da linguagem queria colocar em pt ou en ?
I've created a blog using Next.js with Sanity as the CMS. My aim is to develop a fully Japanese-language website, incorporating Japanese characters in the URL slugs to reflect the predominantly Japanese article titles. For instance, I'd like to implement URLs such as '/posts/こんにちは'.
However, I'm encountering difficulties implementing this feature. While I've successfully implemented language switching using next-intl, I haven't found a solution for dynamically generating Japanese language slugs that work correctly in URLs. I would greatly appreciate any guidance or suggestions.
Hey! Nice work! So you want to have multilingual webiste, right?
Basically, Next.js should be able to handle Unicode characters, including Japanese, in URL paths by default. However, some browsers might encode non-ASCII characters. For example, you could use a slugging function that works with Unicode characters.
- You can try the `slugify` npm package, it supports Unicode slugs.
- Then you can use it like this for example:
function generateSlug(title) {
return slugify(title, { lower: true, strict: true, locale: 'ja' });
}
This will generate slugs that allow Japanese characters while keeping other parts of the slug URL-safe.
- You can also use `slugify` in sanity schema:
slugify: (input) => slugify(input, { lower: true, strict: true, locale: 'ja' })
- Also, make sure to update your `next.config.js` with locales: i18n: {
locales: ['en', 'ja'],
defaultLocale: 'ja',
}
I pan to update my blog tutorial with a multi-lang switch in the future, but in the meantime, I hope this helps!
next project using next js sanity and auth user with role and permission🥰🥰
good info but voice is kinda hurting
Please add comments sir.
Just published the video, check it out - th-cam.com/video/wCzB4eXcP18/w-d-xo.html
@@codewalkempire thank you sir. you are amazing.
very amazing.