How to Add Google Fonts in Hugo

Hugo is a static site generator written in Go, known for its speed, simplicity, and flexibility. When using Hugo, we might need to add Google Fonts to our site. This article will introduce how to add Google Fonts in Hugo. I am using the PaperMod theme, and we can achieve this by modifying the HTML files in the theme. Follow the steps below to add Google Fonts. Google Fonts First, go to the official Google Fonts library and find the font you need, such as the Roboto font. Click the View Selected families icon in the top right corner, then click the Get embed code button. ...

September 14, 2024 · 2 min · 217 words · KELEN

How to Deploy Hugo Static Website on Vercel

Hugo is known as the fastest static website generator in the world. It is indeed very fast and supports multiple themes to meet different user needs. This article will explain how to deploy a Hugo static website on Vercel. Vercel is a user-friendly deployment platform that supports various frameworks, including Hugo, Gatsby, Next.js, and more. It offers convenient deployment speed and supports custom domains, making it an ideal platform for deploying static websites. ...

September 7, 2024 · 1 min · 185 words · KELEN

Failed to deploy Hugo project on Vercel, error message "found no layout file for "HTML" for "home""

Deploy Hugo project on Vercel After pushing the code to GitHub, I associated the repository with Vercel to deploy the site. However, after the successful deployment, the site always showed an XML page. I checked the Vercel logs and found the following error message: Building sites … WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN 2024/09/07 14:41:14 found no layout file for "HTML" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. ...

September 4, 2024 · 2 min · 364 words · KELEN