# static site optimization

Published articles for static site optimization.

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

## Optimizing Hugo static site redirects with Cloudflare Pages

DevFeed: [Optimizing Hugo static site redirects with Cloudflare Pages](<https://devfeed.tech/articles/optimizing-hugo-static-site-redirects-with-cloudflare-pages-27704.md>)

Original publisher: [Read original article](<https://gagor.pro/2024/03/optimizing-hugo-static-site-redirects-with-cloudflare-pages/>)

Author: Tom

Published: 2024-03-04T00: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>), [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [hosting](<https://devfeed.tech/topics/hosting.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-pages](<https://devfeed.tech/tags/cloudflare-pages.md>), [cloudflare-redirect-rules](<https://devfeed.tech/tags/cloudflare-redirect-rules.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [hugo-redirects](<https://devfeed.tech/tags/hugo-redirects.md>), [hugo-site-redirects](<https://devfeed.tech/tags/hugo-site-redirects.md>), [seo](<https://devfeed.tech/tags/seo.md>), [static-site](<https://devfeed.tech/tags/static-site.md>), [static-site-optimization](<https://devfeed.tech/tags/static-site-optimization.md>)

### AI overview

This tutorial explains how to generate a redirects file from Hugo aliases, add custom redirects, and deploy it with Cloudflare Pages. It presents the approach as a way to handle more redirects than the author could support with GitHub Pages and Cloudflare's Free plan limitations.

### Source excerpt

Learn how to optimize Hugo static site redirects using Cloudflare Pages, overcoming limitations of GitHub Pages and Cloudflare Free plan.

## My pre-commit config for Hugo blog

DevFeed: [My pre-commit config for Hugo blog](<https://devfeed.tech/articles/my-pre-commit-config-for-hugo-blog-27692.md>)

Original publisher: [Read original article](<https://gagor.pro/2024/01/my-pre-commit-config-for-hugo-blog/>)

Author: Tom

Published: 2024-01-29T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [hooks](<https://devfeed.tech/topics/hooks.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>), [Git](<https://devfeed.tech/topics/git.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [make](<https://devfeed.tech/topics/make.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [config](<https://devfeed.tech/tags/config.md>), [devops](<https://devfeed.tech/tags/devops.md>), [git](<https://devfeed.tech/tags/git.md>), [git-pre-commit-configuration](<https://devfeed.tech/tags/git-pre-commit-configuration.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [hugo-blog-automation](<https://devfeed.tech/tags/hugo-blog-automation.md>), [hugo-development-tips](<https://devfeed.tech/tags/hugo-development-tips.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [make](<https://devfeed.tech/tags/make.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [pre-commit](<https://devfeed.tech/tags/pre-commit.md>), [pre-commit-hooks](<https://devfeed.tech/tags/pre-commit-hooks.md>), [pre-commit-setup](<https://devfeed.tech/tags/pre-commit-setup.md>), [static-site-optimization](<https://devfeed.tech/tags/static-site-optimization.md>)

### AI overview

A tutorial showing how to configure pre-commit hooks for a Hugo blog. The configuration automates linting, syntax checks, file optimization, and related cleanup tasks when files are committed.

### Source excerpt

Learn how to set up and use pre-commit hooks to automate tasks like linting, syntax checks, and optimizations for your Hugo blog.

## Maximizing page performance and security with Cloudflare tuning

DevFeed: [Maximizing page performance and security with Cloudflare tuning](<https://devfeed.tech/articles/maximizing-page-performance-and-security-with-cloudflare-tuning-27691.md>)

Original publisher: [Read original article](<https://gagor.pro/2024/01/maximizing-page-performance-and-security-with-cloudflare-tuning/>)

Author: Tom

Published: 2024-01-11T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>), [Security](<https://devfeed.tech/topics/security.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-tuning](<https://devfeed.tech/tags/cloudflare-tuning.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [http-3](<https://devfeed.tech/tags/http-3.md>), [https](<https://devfeed.tech/tags/https.md>), [https-configuration](<https://devfeed.tech/tags/https-configuration.md>), [page-performance](<https://devfeed.tech/tags/page-performance.md>), [performance](<https://devfeed.tech/tags/performance.md>), [security](<https://devfeed.tech/tags/security.md>), [static-site-optimization](<https://devfeed.tech/tags/static-site-optimization.md>), [tls](<https://devfeed.tech/tags/tls.md>), [website-security](<https://devfeed.tech/tags/website-security.md>)

### AI overview

A practical guide to tuning Cloudflare for a statically generated blog hosted on GitHub Pages. It covers HTTPS, HSTS, TLS versions, Brotli, and related settings, recommending that readers enable changes incrementally and measure their effects.

### Source excerpt

Learn how to maximize page performance and security by tuning Cloudflare settings, specifically for a statically generated blog hosted on GitHub Pages.