[GRASS-web] new website: draft version

Luca Delucchi lucadeluge at gmail.com
Thu Aug 29 15:10:29 PDT 2019

On Thu, 29 Aug 2019 at 18:37, nicolas bozon <nicolas.bozon at gmail.com> wrote:
> Hi Martin,


> When building the site locally, i used to declare " " as baseURL, and then run ghe hugo server command to build and publish on localhost:1313

I tested it, and it doesn't work. I'm using apache on debian and I
compiled source code with hugo, linked the public directory to
/var/www/html/grass-website and
http://localhost/grass-website/ it works
all the links in the menu are broken since they redirect to
http://localhost/GRASS-GIS/learn/newcomers/ instead of
http://localhost/grass-website/learn/newcomers/ (GRASS-GIS seems
hardcoded too)

> Then i also realized that the final web URL had to be hardcoded to make it work on the web server.
> However, there are these relURL (https://gohugo.io/functions/relurl/) and absURL (https://gohugo.io/functions/absurl/) that i noticed afterwards, that may help to solve this issue.

yes I hope this is the right way

> Talk soon,
> Nick



More information about the grass-web mailing list