Comments (5)
This project makes Hugo as Docker image and is not a replacement of Hugo. Please see the Hugo documentation for information on how to use Hugo.
from docker-hugo.
Just because it is dockerized hugo does not mean you can not have a proper documentation of how to use the image. Just trying to help you maintain a helpful repo but you can do whatever you want; it is your repo!.
Peace.
from docker-hugo.
@babatundebusari Any ideas for when you start up Hugo within docker, after run "hugo new site" automatically? Thanks
from docker-hugo.
I just worked my way through this issue. The Docker image has hugo installed, but it doesn't have any code for a website. That's why we get the error about missing a config file. This page helped me work out that bit. If you do have code for a website, make sure your $(pwd)
is the directory containing your site's code.
If you don't have code for a website on your local machine, you can start the container with the shell command like so (if your them uses mods, choose a ext-<os>-onbuild
image):
docker run --rm -it \
-v $(pwd):/src \
klakegg/hugo:0.93.2-alpine \
shell
Then, from the container's shell, you can clone your website's GitHub repo (git is installed), or if you're starting from scratch, do a Quick Start and build your site.
You can start the server when you're done hugo server -D
. The -D
shows you draft posts.
from docker-hugo.
Am also interested in getting this one right :)
from docker-hugo.
Related Issues (20)
- missing config file HOT 1
- Shell completion broken
- Error: failed to download modules: binary with name "go" not found HOT 1
- Documentation of NodeJS version is incorrect HOT 1
- Error: Unable to locate config file or config directory. Perhaps you need to create a new site. HOT 1
- Error: Unable to build hugo site with mounted sources since Version 0.96.0 HOT 2
- Server does not watch for changes HOT 2
- Update new version v0.103.0 HOT 5
- Are you force pushing releases? HOT 1
- POSTCSS: failed to transform HOT 2
- Error: failed to download modules: binary with name "go" not found HOT 1
- Q: where can i find "klakegg/docker-project-prepare" HOT 1
- Upgrade NodeJS version to >18.10
- "'/src' is owned by someone else" reported when building status.jenkins.io with docker-hugo HOT 2
- Release sync
- Missing tags (0.112.0+) HOT 5
- newer release to address critical vulns or build myself
- Fix for CVE-2023-29491 on ncurses library
- Please @klakegg, make latest hugo image HOT 2
- minify or other parameters to hugo-command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-hugo.