[Cialug] Hugo, anyone?

Adam Shannon adam at ashannon.us
Tue Dec 31 17:04:26 UTC 2019


I setup a Hugo site this week and package it all into a Docker image. All that's ran before is the 'hugo' build step before copying into the image.

https://github.com/moov-io/moov-io/blob/master/Dockerfile

You might need to specify the content type for CSS/JS?

https://github.com/moov-io/moov-io/blob/master/nginx/default.conf#L19-L27


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, December 30, 2019 8:34 AM, Matt Patterson <matt at usrlocal.com> wrote:

> I’m doing something similar to what you are doing but usually apache. Basically, I work on the content locally, once ready, run a clean Hugo run, save to GitHub and then with some puppet magic, my web server pulls down the latest version.
>
> In your public directory (mine is called "html") , are the images and CSS files getting in there when Hugo does its magic? Just curious if is a Hugo issue or a NGINX issue.
>
> -Matt
>
> > On Dec 29, 2019, at 2:29 PM, L. V. Lammert lvl at omnitec.net wrote:
> > Playing with Hugo to generate a site, and from the docs the created public
> > folder is the actual site, so pushing it to an NGINX instance would update
> > the prod version (and it does).
> > Problem is, there is something missing - no images, no css, just plain
> > html.
> > Has anyone setup an nginx instance for hugo? What is required beyond
> > cloning the public directory?
> > TIA!
> >
> > Cialug mailing list
> > Cialug at cialug.org
> > https://www.cialug.org/cgi-bin/mailman/listinfo/cialug
>
> Cialug mailing list
> Cialug at cialug.org
> https://www.cialug.org/cgi-bin/mailman/listinfo/cialug




More information about the Cialug mailing list