-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dietpi-Software | Hugo: A static-site generator for building websites #6487
base: dev
Are you sure you want to change the base?
Conversation
@MichaIng |
Keep in mind, it is not about installation of Caddy software only. It would need to be integrated into with all apps which requires a web server 😉 |
I was of that opinion too a few weeks ago, but now I'm happy to run my usual web servers in the background (fileserver, jellyfin, synapse, etc.) and use Caddy to collect/proxy to them. I haven't seen much overhead either with this setup. Edit: Ah, if you mean I'll have to do some custom config that captures all the custom stuff you guys did with Nginx, then I'm not sure how hard that will actually be. My current Caddyfile looks like:
I can't foresee doing the others being too much work, though admittedly it'd be pretty hard to test that it's 100% working for everything. Hmm... maybe I have underthought this :-) |
Co-authored-by: MichaIng <[email protected]>
@MichaIng Other than Caddy, which I will implement in another PR elsewhere. Is there anything in this PR preventing it from being merged? |
if To_Uninstall 141 # WordPress | ||
then | ||
Remove_Service hugo | ||
G_AGP hugo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
G_AGP hugo | |
G_AGP hugo | |
[[ -f '/mnt/dietpi_userdata/hugo' ]] && G_EXEC rm -R /mnt/dietpi_userdata/hugo |
[Service] | ||
SyslogIdentifier=Hugo | ||
User=hugo | ||
LogsDirectory=hugo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really log to /var/log/hugo
, or can it be configured to log to STDOUT instead?
## Note that the '.md' extension is important | ||
``` | ||
|
||
You can then modify the file with a markdown editor, and it will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
People will know, but of course any text editor will so:
You can then modify the file with a markdown editor, and it will | |
You can then modify the file with a text or markdown editor, and it will |
I just did not find the time to look into it/think about it, sorry for the delay. One thing I am not sure about is that currently a website with a hardcoded name and hardcoded initial content is created, and the service serves this one explicitly. I guess usually users would want to create an own site from scratch, with an individual name, in which case the one we created becomes obsolete and the service won't work (as intended). I am not sure whether there is a way to have the service serving the first/only page dynamically. At least we could introduce a variable via |
This is a nice small static server for easily building blogs in markdown.
Best of all, it supports multiple markup languages like org-mode and plain text, and others I can't seem to name.
It is highly themeable: https://themes.gohugo.io/
I've created a systemd deamon for it and the first post on the website explains how to create more posts.
More config options: https://gohugo.io/getting-started/quick-start/