one-click-hugo-cms | Hugo template with Netlify CMS | Content Management System library
kandi X-RAY | one-click-hugo-cms Summary
kandi X-RAY | one-click-hugo-cms Summary
Hugo template with Netlify CMS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of one-click-hugo-cms
one-click-hugo-cms Key Features
one-click-hugo-cms Examples and Code Snippets
Community Discussions
Trending Discussions on one-click-hugo-cms
QUESTION
I have used the Netlify CMS Hugo Site Starter to set up a site and it worked fine.
Then I took the files from the repository that was created and moved them over to a new Git repository and created a new Netlify site based on that repository.
Suddenly the deploy is giving me an error when it tries to start Hugo:
ANSWER
Answered 2019-Mar-05 at 00:04Remove the bin folder from your repository and follow this Answer
It will allow you to change Hugo versions as you upgrade your local Hugo version. There are arguments to keep Hugo in a bin folder, because it has a small footprint, but when hosting on Netlify, I do not see any reason to do so. The drawbacks for me trying to keep track of what version is in that bin folder and the issue you are having add to my reasons for not keeping an executable version in the repository.
You will need to run a local version of Hugo globally for development, but you can follow the Hugo docs on how to do this.
QUESTION
In the Netlify CMS community chat, the question keeps coming up how to manage the Hugo version without a bin folder and executable.
The one-click-hugo-cms example is a deploy to generate a Hugo static site and use Netlify CMS to be able to add posts for the site.
The Issue: The site setup uses a bin folder to store the Hugo executable for simplicity, but the developer wants to use a different version of Hugo and keep it up to date without having to keep copying new executables to the Hugo bin folder.
...ANSWER
Answered 2018-Feb-27 at 00:33The bin folder for Hugo is NOT required. Netlify manages a Hugo version install in the container based on the environment variable (HUGO_VERSION
) when there is a build.
Basically follow these steps:
- Remove the bin folder and executable out of the project
- Change the command to the bin path and call it globally
- Let Netlify know what version you want to use in the
netlify.toml
Edit this line
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install one-click-hugo-cms
A new repository in your GitHub account with the code
Full Continuous Deployment to Netlify's global CDN network
Control users and access with Netlify Identity
Manage content with Netlify CMS
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page