# Hugo site indexing

Published articles for Hugo site indexing.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Automatically setting 'lastmod' in Hugo pages with Git modification date

DevFeed: [Automatically setting 'lastmod' in Hugo pages with Git modification date](<https://devfeed.tech/articles/automatically-setting-lastmod-in-hugo-pages-with-git-modification-date-27700.md>)

Original publisher: [Read original article](<https://gagor.pro/2024/03/automatically-setting-lastmod-in-hugo-pages-with-git-modification-date/>)

Author: Tom

Published: 2024-03-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Hugo](<https://devfeed.tech/topics/hugo.md>), [Git](<https://devfeed.tech/topics/git.md>), [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>)

Tags: [automatic-lastmod-setting](<https://devfeed.tech/tags/automatic-lastmod-setting.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [commit](<https://devfeed.tech/tags/commit.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [devops](<https://devfeed.tech/tags/devops.md>), [git](<https://devfeed.tech/tags/git.md>), [git-modification-date](<https://devfeed.tech/tags/git-modification-date.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [hugo-lastmod](<https://devfeed.tech/tags/hugo-lastmod.md>), [hugo-seo-optimization](<https://devfeed.tech/tags/hugo-seo-optimization.md>), [hugo-site-indexing](<https://devfeed.tech/tags/hugo-site-indexing.md>), [search-engine-optimization](<https://devfeed.tech/tags/search-engine-optimization.md>), [seo](<https://devfeed.tech/tags/seo.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

### AI overview

This tutorial explains how to set Hugo's lastmod parameter automatically from Git modification dates. It covers the need for full Git history, adjustments for GitHub Actions and Cloudflare Pages, and applicability to other CI/CD configurations.

### Source excerpt

Learn how to automatically set the 'lastmod' parameter in Hugo pages using Git modification dates to improve SEO and expedite search engine indexing.