HUGO

Subdomain implementation

Hi, I am thinking of working on implementing subdomains for Hugo but wanted to get the communities opinion/suggestions on the idea. It would allow things like your blog to be at blog.mydomain.com instead of mydomain.com/posts

What I am planning to do:

  • I am not going to touch the server, all subdomain handling I will leave for the end user to setup within their chosen web server
  • I am going to add configuration options such as subdomain that will allow the user to specify a given content folder will be hosted on a seperate subdomain
  • I am going to change the way links are generated in order to support the new config options

I am not too familiar with the codebase so it may take a while before I get a working copy

Hugo already does this, with a combination of forethought and configuration. Please read the docs.

1 Like