[GRASS-web] new website: draft version

Martin Landa landa.martin at gmail.com
Fri Aug 30 01:23:09 PDT 2019


Hi,

čt 29. 8. 2019 v 19:37 odesílatel nicolas bozon
<nicolas.bozon at gmail.com> napsal:
>
> 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/) 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



-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-web mailing list