[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-web
Subject:    =?utf-8?q?grass-web_Digest=2C_Vol_132=2C_Issue_14?=
From:       grass-web-request () lists ! osgeo ! org
Date:       2019-08-30 19:00:02
Message-ID: mailman.17.1567191602.8041.grass-web () lists ! osgeo ! org
[Download RAW message or body]

Send grass-web mailing list submissions to
	grass-web@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.osgeo.org/mailman/listinfo/grass-web
or, via email, send a message with subject or body 'help' to
	grass-web-request@lists.osgeo.org

You can reach the person managing the list at
	grass-web-owner@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-web digest..."


Today's Topics:

   1. Re:  new website: draft version (Luca Delucchi)
   2. Re:  new website: draft version (Martin Landa)
   3. Re:  new website: draft version (Martin Landa)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Aug 2019 00:10:29 +0200
From: Luca Delucchi <lucadeluge@gmail.com>
To: nicolas bozon <nicolas.bozon@gmail.com>
Cc: Martin Landa <landa.martin@gmail.com>, GRASS-web
	<grass-web@lists.osgeo.org>
Subject: Re: [GRASS-web] new website: draft version
Message-ID:
	<CAK4m-3zYB_qtnSd1q5t0=Hd1c68TvX-2+6x0sGS-y2F4nRRDOg@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

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

Hi,

> 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
> 

-- 
ciao
Luca

www.lucadelu.org


------------------------------

Message: 2
Date: Fri, 30 Aug 2019 11:23:09 +0300
From: Martin Landa <landa.martin@gmail.com>
To: nicolas bozon <nicolas.bozon@gmail.com>
Cc: Moritz Lennert <mlennert@club.worldonline.be>, GRASS-web
	<grass-web@lists.osgeo.org>,  Veronica Andreo <veroandreo@gmail.com>
Subject: Re: [GRASS-web] new website: draft version
Message-ID:
	<CA+Ei1OcLuvji1g53zu4rXRsR87vQC3+FjRwYwu5BEU8jTFL-_g@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

čt 29. 8. 2019 v 19:37 odesílatel nicolas bozon
<nicolas.bozon@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@gmail.com> a écrit :
> > 
> > Hi,
> > 
> > čt 29. 8. 2019 v 17:11 odesílatel Martin Landa <landa.martin@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


------------------------------

Message: 3
Date: Fri, 30 Aug 2019 11:24:25 +0300
From: Martin Landa <landa.martin@gmail.com>
To: nicolas bozon <nicolas.bozon@gmail.com>
Cc: Moritz Lennert <mlennert@club.worldonline.be>, GRASS-web
	<grass-web@lists.osgeo.org>,  Veronica Andreo <veroandreo@gmail.com>
Subject: Re: [GRASS-web] new website: draft version
Message-ID:
	<CA+Ei1Oc1uXG2hJ8w6Q4Ytun7y=gWV+XnSA9ugvfEVng75ev8=A@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

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

great, readme updated [1]. Ma

[1] https://github.com/OSGeo/grass-website/pull/1/commits/2e8a5880edd5af9502ce77522e2b6e9e27d7c6f8


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


------------------------------

Subject: Digest Footer

_______________________________________________
grass-web mailing list
grass-web@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-web

------------------------------

End of grass-web Digest, Vol 132, Issue 14
******************************************


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic