Skip to content

๐Ÿ”Ž Search Engine Optimization

Want to optimize your site for search engines and social networks?

Hugo Blox has awesome built-in SEO capable of delivering rich search results. For example, this is how an event page can appear in Google:

By default, Hugo Blox automatically applies awesome search engine and social network optimizations for you, including:

  • โœ… 100% SEO score in Google Lighthouse (tested on the Academic template demo)
  • โœ… JSON-LD structured data enabling rich results in search engines such as Google
  • โœ… Progressive Web App (PWA) Manifest enabling users to install your site as an app
  • โœ… Automatic, responsive site icon generation
  • โœ… Social network structured data to enable rich social media sharing
  • โœ… Social network sharing images generated
  • โœ… Canonical URLs
  • โœ… Sitemap
  • โœ… Robots welcome by default to index your site in search engines

Submit your site to search engines

Submit your site to search engines such as Google or Baidu.

If asked for your sitemap, it can be found at /sitemap.xml. For example, if your site is, then your sitemap can be found at

When provided with a verification code, paste the code in your config following the guide in the following section.

Verify your site with third-party services

Search engine and social verification is supported with Google, Bing, Yandex, Baidu, and Pinterest.

This enables third-parties, such as Google, to verify that you actually own the site which you claim to own.

Verify your site by adding the search engineโ€™s verification code to your config/_default/params.yaml:

google: ""
bing: ""
baidu: ""
yandex: ""
pinterest: ""

Improve your search engine and social network previews

Letโ€™s take a look at the corresponding options in params.yaml:

1. Website type

Improve how search engines understand your site by filling site_type.

  • For personal sites, choose โ€œPersonโ€.
  • For organizations and projects, choose from
  • Example values: Person, Organization, LocalBusiness, Project, EducationalOrganization

If you entered LocalBusiness for Site Type, choose the type of local business from . For example, local_business_type: ProfessionalService.

2. Organization name (optional)

Enter an organization or project name in the org_name field. Defaults to the site title set in hugo.yaml.

3. Website description

Add a description for social sharing and search engines. If undefined, superuser role is used in place.

4. Get mentioned on Twitter

Want to get mentioned when a user shares your site on Twitter? Add your username to the twitter field.

5. Add a sharing image

Add an image named sharing to the assets/media/ folder to represent your site when it is shared on social media.


site_type: Person
local_business_type: ''
org_name: ''
description: 'Researcher at Hugo Research Group.'
twitter: 'elonmusk'