Comments (4)
Hey @janraasch! I think I resolved it :).
Could it be that you try to a access the public/index.html-file via the file:///-protocol in your browser? Your screenshot does not show the url in the browser but I suspect it starts with file:///. Am I correct?
I've used a local docker container with nginx to serve the files so my url started with 'http://'.
My error was another: I've missed the file config/production/build.toml
. Without this file, hugo wasn't able to build proper CSS and I thought that it is just for activating some statistic output. After I added the file to my personal site (and the example site ...), all hugo builds work just fine. My bad!
Maybe you can add this dependency to your readme into the section with all copy instructions for package.json
etc.
Thanks again for your help! I'll close this issue now
from hugo-product-launch.
Hi @maxkratz,
thank you for getting in touch
Am I missing something?
It sure looks like it
Did you clone the kickstart-repo https://github.com/janraasch/hugo-product-launch-kickstart ?
I think that is probably the easiest way to make sure you have all the files in all the right places. Otherwise could you send me the contents of your site's directory, i.e. the result of running ls -la
if your on linux / mac.
Have a good one
Jan
from hugo-product-launch.
Thank you for helping me out :)
Did you clone the kickstart-repo https://github.com/janraasch/hugo-product-launch-kickstart ?
I think that is probably the easiest way to make sure you have all the files in all the right places.
What I've done so far:
$ git clone https://github.com/janraasch/hugo-product-launch-kickstart.git
$ cd hugo-product-launch-kickstart
$ git submodule update --init --recursive
$ npm install
$ sudo npm install postcss-cli postcss -g
$ hugo
But rendering of the kickstart project does not work for me, either ... (hugo server
sucessfully builds the page and serves it correctly!)
Output of ls -la
:
maxkratz@thinkbrett ~/Schreibtisch/hugo-product-launch-kickstart $ ls -la
insgesamt 280
drwxrwxr-x 14 maxkratz maxkratz 4096 Nov 11 13:39 .
drwxr-xr-x 9 maxkratz maxkratz 28672 Nov 11 13:37 ..
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 assets
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 config
-rw-rw-r-- 1 maxkratz maxkratz 2389 Nov 11 13:37 config.toml
drwxrwxr-x 2 maxkratz maxkratz 4096 Nov 11 13:37 content
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 .forestry
drwxrwxr-x 9 maxkratz maxkratz 4096 Nov 11 13:38 .git
drwxrwxr-x 2 maxkratz maxkratz 4096 Nov 11 13:37 .github
-rw-rw-r-- 1 maxkratz maxkratz 39 Nov 11 13:37 .gitignore
-rw-rw-r-- 1 maxkratz maxkratz 136 Nov 11 13:37 .gitmodules
-rw-rw-r-- 1 maxkratz maxkratz 2638 Nov 11 13:39 hugo_stats.json
-rw-rw-r-- 1 maxkratz maxkratz 467 Nov 11 13:37 netlify.toml
drwxrwxr-x 149 maxkratz maxkratz 24576 Nov 11 13:39 node_modules
-rw-rw-r-- 1 maxkratz maxkratz 1103 Nov 11 13:37 package.json
-rw-rw-r-- 1 maxkratz maxkratz 70231 Nov 11 13:37 package-lock.json
drwxr-xr-x 4 maxkratz maxkratz 4096 Nov 11 13:39 public
-rw-rw-r-- 1 maxkratz maxkratz 3222 Nov 11 13:37 README.md
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 resources
drwxrwxr-x 2 maxkratz maxkratz 4096 Nov 11 13:37 scripts
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 static
-rw-rw-r-- 1 maxkratz maxkratz 269 Nov 11 13:37 tailwind.config.js
drwxrwxr-x 3 maxkratz maxkratz 4096 Nov 11 13:37 themes
Thank you again for your help!
from hugo-product-launch.
Hi @maxkratz, I think this might be a witch hunt.
Could it be that you try to a access the public/index.html
-file via the file:///
-protocol in your browser? Your screenshot does not show the url
in the browser but I suspect it starts with file:///
. Am I correct?
If so, then everything is fine and there actually is no problem at all. It's just that the production build of a hugo generated site is meant to be served via a webserver (i.e. http://
or https://
). Usually one would not look at the production build via the local filesystem, but push it to a webserver to be served via nginx or something like netlify.
from hugo-product-launch.
Related Issues (15)
- Add forestry.io config to exampleSite HOT 1
- How do I configure the contact form? HOT 1
- When deployed to S3 site looks a mess HOT 2
- Main Image Does not Load on Mobile HOT 1
- Consider use relative css path HOT 1
- Enable Β»nocodeΒ« custom colors HOT 4
- Migrate from forestry.io to TinaCMS HOT 1
- Upgrade Hugo theme from Tailwind CSS 2.0 to Tailwind CSS 3.0 HOT 1
- Upgrade Hugo theme from Tailwind CSS 2.0 to Tailwind CSS 3.0 HOT 1
- I get can't evaluate IsProduction errors. HOT 2
- Error: Error building site: POSTCSS: failed to transform "css/main.css" HOT 1
- html not working as expected HOT 2
- hugo-product-launch-kickstart - starting point ? HOT 2
- Mobile devices - image missing ?
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 hugo-product-launch.