Hugo Docs domain?


#1

Each time I need to look up Hugo docs, I go to gohugo.io and then click on Docs, and that takes me to http://gohugo.io/overview/introduction/

I was wondering if you can create a domain alias like docs.gohugo.io that redirects to the above link.


#2

Browsers have a feature called … bookmarks… But I see your point. However, I see your point. @spf13 would have to do that.


#3

I rely more on auto-completion nowadays… works great on Chrome Android or desktop.

I type discuss., and click.

I type GitHub., shows me my recently visited repos, and click.

I suggested redirecting just to begin with. It would be nice to have that as permanent, and have the current URLs as aliases in the frontmatter of the doc .md files.


#4

Domains can’t redirect to URLs, only other domains. You can have a domain which is an alias for example.com, but not for example.com/path/to/content.html.

If you created an alias for example.com that was docs.example.com, then:

  • docs.example.com/content.html can point to example.com/content.html, but…
  • docs.example.com will also point to example.com

Anything else would require something like either server-side redirection (ironic for a website espousing the virtues of a static site generator!) or use of <meta http-equiv> and similar techniques.