-c, --contentDir string filesystem path to content directory
--format string preferred file format (toml, yaml or json) (default "toml")
-h, --help help for config
+ --lang string the language to display config for. Defaults to the first language defined.
-t, --theme strings themes to use (located in /themes/THEMENAME/)
```
Hugo provides its own webserver which builds and serves the site.
While hugo server is high performance, it is a webserver with limited options.
-Many run it in production, but the standard behavior is for people to use it
-in development and use a more full featured server such as Nginx or Caddy.
'hugo server' will avoid writing the rendered and served content to disk,
preferring to store it in memory.
of a second, you will be able to save and see your changes nearly instantly.
```
-hugo server [flags] [args]
+hugo server [command] [flags]
```
### Options
--templateMetrics display metrics about template executions
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
-t, --theme strings themes to use (located in /themes/THEMENAME/)
+ --tlsAuto generate and use locally-trusted certificates.
+ --tlsCertFile string path to TLS certificate file
+ --tlsKeyFile string path to TLS key file
--trace file write trace to file (not useful in general)
-w, --watch watch filesystem for changes and recreate as needed (default true)
```
### SEE ALSO
* [hugo](/commands/hugo/) - hugo builds your site
+* [hugo server trust](/commands/hugo_server_trust/) - Install the local CA in the system trust store.
--- /dev/null
+---
+title: "hugo server trust"
+slug: hugo_server_trust
+url: /commands/hugo_server_trust/
+---
+## hugo server trust
+
+Install the local CA in the system trust store.
+
+```
+hugo server trust [flags] [args]
+```
+
+### Options
+
+```
+ -h, --help help for trust
+ --uninstall Uninstall the local CA (but do not delete it).
+```
+
+### Options inherited from parent commands
+
+```
+ --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
+ --config string config file (default is hugo.yaml|json|toml)
+ --configDir string config dir (default "config")
+ --debug debug output
+ -d, --destination string filesystem path to write files to
+ -e, --environment string build environment
+ --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
+ --log enable Logging
+ --logFile string log File path (if set, logging enabled automatically)
+ --quiet build in quiet mode
+ -s, --source string filesystem path to read files relative from
+ --themesDir string filesystem path to themes directory
+ -v, --verbose verbose output
+ --verboseLog verbose logging
+```
+
+### SEE ALSO
+
+* [hugo server](/commands/hugo_server/) - A high performance webserver
+
[pagevars]: /variables/page/
[section]: /content-management/sections/
[taxweight]: /content-management/taxonomies/
-[toml]: https://github.com/toml-lang/toml "Specification for TOML, Tom's Obvious Minimal Language"
+[toml]: https://toml.io/
[urls]: /content-management/urls/
[variables]: /variables/
[yaml]: https://yaml.org/spec/ "Specification for YAML, YAML Ain't Markup Language"
---
title: eq
-description: Returns the boolean truth of arg1 == arg2.
+description: Returns the boolean truth of arg1 == arg2 || arg1 == arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["eq ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["eq ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if eq .Section "blog" }}current{{ end }}
+{{ eq 1 1 }} → true
+{{ eq 1 2 }} → false
+
+{{ eq 1 1 1 }} → true
+{{ eq 1 1 2 }} → true
+{{ eq 1 2 1 }} → true
+{{ eq 1 2 2 }} → false
```
---
title: ge
-description: Returns the boolean truth of arg1 >= arg2.
+description: Returns the boolean truth of arg1 >= arg2 && arg1 >= arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["ge ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["ge ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if ge 10 5 }}true{{ end }}
+{{ ge 1 1 }} → true
+{{ ge 1 2 }} → false
+{{ ge 2 1 }} → true
+
+{{ ge 1 1 1 }} → true
+{{ ge 1 1 2 }} → false
+{{ ge 1 2 1 }} → false
+{{ ge 1 2 2 }} → false
+
+{{ ge 2 1 1 }} → true
+{{ ge 2 1 2 }} → true
+{{ ge 2 2 1 }} → true
```
---
title: gt
-description: Returns the boolean truth of arg1 > arg2.
+description: Returns the boolean truth of arg1 > arg2 && arg1 > arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["gt ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["gt ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if gt 10 5 }}true{{ end }}
+{{ gt 1 1 }} → false
+{{ gt 1 2 }} → false
+{{ gt 2 1 }} → true
+
+{{ gt 1 1 1 }} → false
+{{ gt 1 1 2 }} → false
+{{ gt 1 2 1 }} → false
+{{ gt 1 2 2 }} → false
+
+{{ gt 2 1 1 }} → true
+{{ gt 2 1 2 }} → false
+{{ gt 2 2 1 }} → false
```
---
title: le
-description: Returns the boolean truth of arg1 <= arg2.
+description: Returns the boolean truth of arg1 <= arg2 && arg1 <= arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["le ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["le ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if le 5 10 }}true{{ end }}
+{{ le 1 1 }} → true
+{{ le 1 2 }} → true
+{{ le 2 1 }} → false
+
+{{ le 1 1 1 }} → true
+{{ le 1 1 2 }} → true
+{{ le 1 2 1 }} → true
+{{ le 1 2 2 }} → true
+
+{{ le 2 1 1 }} → false
+{{ le 2 1 2 }} → false
+{{ le 2 2 1 }} → false
```
---
title: lt
-description: Returns the boolean truth of arg1 < arg2.
+description: Returns the boolean truth of arg1 < arg2 && arg1 < arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["lt ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["lt ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if lt 5 10 }}true{{ end }}
+{{ lt 1 1 }} → false
+{{ lt 1 2 }} → true
+{{ lt 2 1 }} → false
+
+{{ lt 1 1 1 }} → false
+{{ lt 1 1 2 }} → false
+{{ lt 1 2 1 }} → false
+{{ lt 1 2 2 }} → true
+
+{{ lt 2 1 1 }} → false
+{{ lt 2 1 2 }} → false
+{{ lt 2 2 1 }} → false
```
---
title: ne
-description: Returns the boolean truth of arg1 != arg2.
+description: Returns the boolean truth of arg1 != arg2 && arg1 != arg3.
categories: [functions]
menu:
docs:
parent: functions
-keywords: [operators,logic]
-signature: ["ne ARG1 ARG2"]
+keywords: [comparison,operators,logic]
+signature: ["ne ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---
-
```go-html-template
-{{ if ne .Section "blog" }}current{{ end }}
+{{ ne 1 1 }} → false
+{{ ne 1 2 }} → true
+
+{{ ne 1 1 1 }} → false
+{{ ne 1 1 2 }} → false
+{{ ne 1 2 1 }} → false
+{{ ne 1 2 2 }} → true
```
---
title: plainify
-description: Strips any HTML and returns the plain text version of the provided string.
+description: Returns a string with all HTML tags removed.
categories: [functions]
menu:
docs:
## Vim
* [Vim Hugo Helper](https://github.com/robertbasic/vim-hugo-helper). A small Vim plugin to help me with writing posts with Hugo.
+* [vim-hugo](https://github.com/phelipetls/vim-hugo). A Vim plugin with syntax highlighting for templates and a few other features.
## Atom
command = "hugo --gc --minify"
[context.production.environment]
-HUGO_VERSION = "0.112.5"
+HUGO_VERSION = "0.113.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment]
-HUGO_VERSION = "0.112.5"
+HUGO_VERSION = "0.113.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
-HUGO_VERSION = "0.112.5"
+HUGO_VERSION = "0.113.0"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
-HUGO_VERSION = "0.112.5"
+HUGO_VERSION = "0.113.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"