For the hugo theme am using Academic Theme because all other themes are giving parse errors. They fail with some kind of partial/head.html error or index.html issue. I am assuming it is because of some version changes for hugo 0.18.1
Now the issue is this:
When I start the service from caddy, it starts correctly but does not execute hugo. So the page only shows a “404 not found” text.
If I start hugo manually it works but I have to run it exactly like so and it only works through the domain with the port assigned, instead of with the domain alone (without using a port).
hugo server --theme=academic --bind=0.0.0.0 --baseUrl=www.thedeveloper.club --port=8080
What I would like, and please correct me since this is my first time toying with this:
Start caddy which also starts hugo.
Access the hugo site (with the theme) via the thedeveloper.club instead of thedeveloper.club:1313 or any other port
The site should be https
If there is ANY information that is needed here to explain better, please let me know so I can join the ranks little by little of using caddy and hugo (And understand them better). Thank you.
I just do not know what to say. First am humbled and amazed that the creator answered. And that answered the issue altogether. I have this final questions to get into grip with this plugin:
Do options have to be in a certain order or do some depend on others? Like gzip needs to be first or before something.
How can I help in extending the documentation on that page you pointed me to, to add more examples. It is just that, coming from an apache, nginx thinking to here is a bit confusing.
Is the username password just placeholders to put the real user and password? something like /admin peter carry1x where peter is the user and carry1x is the password?
Where can I find a full list of all options available here. I found this The Caddyfile — Caddy Documentation but the way it is explained confused me in the beginning and I do not know if this are all supported directives (Again, confuse).
I just updated to Hugo 0.18.1 and Caddy 0.9.4. I had a working Caddy 0.9.3 version that works great. When I switched to 0.9.4 I cannot add new content or publish themes/sites although the admin console is available.
It also seemed like it hung my Caddy server so I had to restart. I rolled back to 0.9.3 and it works great still. Any ideas?
Just to confirm that is not just me. Are you able to change and save anything in the front-end admin or can you only see the information but can’t save anything? I am having this issue as well. To change theme what I am doing is literally copying their content to the root directory, overwriting everything there and then changing it to my liking because calling the theme like on previous versions is not working.
I thought it was done like this because the other ways did not work.
If I edit my config file (changing the theme name) and save it that seems fine. If I press Publish I get the busy indicator that never goes away and on the back end the site does not get regenerated.
If I go to the content/post directory and do a new post and put in a file name it does the same thing–busy indicator but no new file made on the server. I haven’t tried editing and publishing an existing post–I’ll try that and let you know if that works.
That’s all I’ve noticed. I haven’t tried to git a new theme. I’ll try that too.
application.js:499 Mixed Content: The page at ‘https://blog.xyz.com/admin/themes/’ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://blog.xyz.com/admin/themes/?command=true’. This request has been blocked; this endpoint must be available over WSS.
searchEvent @ application.js:499
application.js:499 Uncaught DOMException: Failed to construct ‘WebSocket’: An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at HTMLInputElement.searchEvent (https://blog.xyz.com/admin/_filemanagerinternal/js/application.js:499:24)