[GRASS-web] new website: draft version
nicolas bozon
nicolas.bozon at gmail.com
Thu Aug 29 09:37:09 PDT 2019
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
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/
<https://gohugo.io/functions/relurl/>) that i noticed afterwards, that may
help to solve this issue.
Talk soon,
Nick
Le jeu. 29 août 2019 à 17:24, Martin Landa <landa.martin at gmail.com> a
écrit :
> Hi,
>
> čt 29. 8. 2019 v 17:11 odesílatel Martin Landa <landa.martin at gmail.com>
> napsal:
> > baseURL is hardcoded to your target [1]. Is there any option to use
> > related URL (pointing to a current directory). Let's open web-site eg.
> > from /opt/src/grass-website/public.
> >
> > In this case baseURL should point to
> file:///opt/src/grass-website/public.
>
> I just wonder whether it's even possible to use relative URLs without
> local web server. My attempt [1] seems to work for main page, but all
> other pages are broken.
>
> Ma
>
> [1]
> https://github.com/landam/grass-website/commit/045ad12e210295d7321e84452f6caa7bcb34e932
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-web/attachments/20190829/bdc2227b/attachment.html>
More information about the grass-web
mailing list