mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -2,20 +2,15 @@
|
||||
title: Site audit
|
||||
linkTitle: Audit
|
||||
description: Run this audit before deploying your production site.
|
||||
categories: [troubleshooting]
|
||||
categories: []
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: troubleshooting
|
||||
weight: 20
|
||||
weight: 20
|
||||
---
|
||||
|
||||
There are several conditions that can produce errors in your published site which are not detected during the build. Run this audit before your final build.
|
||||
|
||||
{{< code copy=true >}}
|
||||
```text {copy=true}
|
||||
HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(<nil>\)|(<nil>)|hahahugo" public/
|
||||
{{< /code >}}
|
||||
```
|
||||
|
||||
_Tested with GNU Bash 5.1 and GNU grep 3.7._
|
||||
|
||||
|
Reference in New Issue
Block a user