如何让Hexo+GitHub Pages博客被谷歌搜索收录?
Hey there! I totally get the frustration of having a blog set up but not showing up in Google searches—let's go through actionable steps beyond the sitemap and search plugins you've already installed to get your "bmy4415's note" blog indexed:
Submit your site to Google Search Console
This is the most critical step to directly notify Google about your blog. First, verify your GitHub Pages domain (the easiest method is uploading the HTML verification file Google provides to your Hexosourcedirectory, then runninghexo deployto push it live). Once verified, submit your sitemap (usually at/sitemap.xmlon your blog root) to help Google crawl all your content efficiently.Optimize metadata for your Korean content
Since you have Korean articles, make sure Google understands your content properly:- Update each post's front-matter with clear, Korean
titleanddescriptionfields—avoid auto-generated generic text. - Set your site's language attribute to
ko-KRin your Hexo theme's configuration file; this helps Google categorize your content correctly for Korean-speaking audiences.
- Update each post's front-matter with clear, Korean
Build quality backlinks
Google uses backlinks to gauge your site's credibility. Try sharing your Korean tech posts in relevant Korean developer communities or forums, add a link to your blog in your GitHub profile README, or reach out to other niche Korean bloggers for reciprocal links (if it makes sense for your content).Fix your robots.txt file
Ensure your blog has a properrobots.txtto guide Google crawlers. If you don't have one, create a file in your Hexosourcedirectory with this content:User-agent: * Allow: / Sitemap: https://bmy4415.github.io/sitemap.xmlThis tells crawlers they can access all your pages and points them to your sitemap.
Optimize for speed and mobile usability
Google prioritizes fast, mobile-friendly sites:- Use a Hexo plugin like
hexo-image-optimizerto compress images and reduce page load times. - Make sure your theme is responsive (test how it looks on mobile devices)—Google’s mobile-first indexing means non-responsive sites might get lower priority.
- Use a Hexo plugin like
Monitor progress and be patient
New sites can take weeks to months to get fully indexed. Check the Coverage report in Google Search Console to spot any indexing errors (like blocked pages or duplicate content) and fix them promptly.
内容的提问来源于stack exchange,提问作者bmy4415

