392668f4fUpdate theme65d82c845fix versions in GitHub Pages docs (#1815)4e078a306Create hosting-on-azure-static-web-apps.md (#1738)e24e25052fix requirement typo (#1814)0790eb173fix broken link (#1813)f4a1b38c7📄 Add more clarity on merging of config files (#1493)2e82efff0Install on Windows: Correct + augment (#1520)4bffd076eUpdate frontends to add CloudCannon's CMS (#1509)17eea3133Update index.md to add resource (#1508)5a5ac1d2fAdd documentation for babel sourceMap (#1492)899b7117cUpdate menu-templates.md284dc4266Include flexible translation in i18n.mdf03421274docs: Escaping Hugo/GO template code4f0755683Improve the documentation of imageConfig and the image resource89aa723ccClarify leaf bundle explanation and related FAQ0c6b32bb9Update starter-kits.mda68151b1bUpdate starter-kits.md91b145384Update starter-kits.mdc8104b422Update hosting-on-21yunbox.md51ee7603bUpdate hosting-on-21yunbox.mdd88314499docs(en): add hosting on 21YunBoxaab04f269Update shortcode-templates.md to correct an error.ed48563aaMisc improvements87dd24e1dFix merge failure0bcc6dca8js.Build: Update docs to not allow boolean inputs for sourceMape50a28fbcjs.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap9695093a1Fix Arch Linux installation command3de773d7aPlease remove hugo-elasticsearch plugin.6510f0a5arelease: Add some more ignore expressions to release notes configdc90b7517typoe > typo (!)3427c7436Add hugoreleaser config5a1f2d0ddImproves formatting of resources, assets sections (#1804)03ba56fddRemove Flesland Flis from Showcases9f61dac7aUpdate slice.md533e4e0cdUpdate theme85e50325cSimplify writing9b30e81b9Typo fix and remove passive form8974b6c53dynamic-menu-configuration1c5467329netlify: Hugo 0.102.3610a937b0Remove Over from Showcase99f5585bcnetlify: Hugo v0.102.29f230ac1fnetlify: Hugo v0.102.1a6fc3f864netlify: Bump to Hugo v0.102.03e9bc1a62Merge branch 'tempv0.102.0'c08d6d898Update en/templates/404.md with Firebase Hosting (#1796)322b75f40Update configuration.md2fa6f0b94404 template example: remove slash relURL arg1195f168aRemove broken link (#1767)e0838e574Update RenderString.mdbee6adf71Update page-resources.md24e142f22Remove duplicate word from cascade description879fc3983docs: Update the description of PostCSS config2ffe539e3fix: Use `=` instead of `:=` for variable reassignments (#1771)7496b8f87update 404 error for digitalocean docsc85caca4aMerge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'c3888b63adocs: Regen docshelper8a5942555Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'282007217common: Add hugo.GoVersion00b4b46daresources/page: Add :slugorfilename attribute git-subtree-dir: docs git-subtree-split:392668f4f4
3.7 KiB
title, linktitle, description, date, categories, menu, keywords, weight, toc, aliases
| title | linktitle | description | date | categories | menu | keywords | weight | toc | aliases | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Frequently Asked Questions | FAQ | Solutions to some common Hugo problems. | 2018-02-10 |
|
|
|
2 | true |
|
{{% note %}} Note: The answers/solutions presented below are short, and may not be enough to solve your problem. Visit Hugo Discourse and use the search. It that does not help, start a new topic and ask your questions. {{% /note %}}
I can't see my content!
Is your markdown file in draft mode? When testing, run hugo server with the -D or --buildDrafts switch.
Is your markdown file part of a leaf bundle? If there is an index.md file in the same or any parent directory then other markdown files will not be rendered as individual pages.
Can I set configuration variables via OS environment?
Yes you can! See Configure with Environment Variables.
How do I schedule posts?
- Set
publishDatein the page Front Matter to a datetime in the future. If you want the creation and publication datetime to be the same, it's also sufficient to only setdate1 . - Build and publish at intervals.
How to automate the "publish at intervals" part depends on your situation:
- If you deploy from your own PC/server, you can automate with Cron or similar.
- If your site is hosted on a service similar to Netlify you can use a service such as ifttt to schedule the updates.
Also see this Twitter thread:
{{< tweet user="ChrisShort" id="962380712027590657" >}}
Can I use the latest Hugo version on Netlify?
Yes you can! Read this.
I get "... this feature is not available in your current Hugo version"
If you process SCSS or SASS to CSS in your Hugo project with libsass as the transpiler or if you convert images to the webp format, you need the Hugo extended version, or else you may see an error message similar to the below:
error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
We release two set of binaries for technical reasons. The extended version is not what you get by default for some installation methods. On the release page, look for archives with extended in the name. To build hugo-extended, use go install --tags extended
To confirm, run hugo version and look for the word extended.
Do I need to install Git to create, deploy, and maintain a website with Hugo?
Technically, no.
Practically, yes.
- The primary installation method documented by most (perhaps all) themes is via Git or the Hugo Modules feature.
- The Hugo Modules feature requires Go, and Go “gets” with Git.
- A Git repository is required by CI/CD hosting (Bitbucket, Cloudflare, GitHub Pages, GitLab Pages, Netlify, et. al.).
- The canonical “last modified” date for content is its Git committer date; using anything else is error-prone.
-
See Configure Dates for the order in which the different date variables are complemented by each other when not explicitly set. ↩︎