I have made two release templates thus far, one for the releases and one
for the nightlies.

I was not aware you could do conditionals, for the home page and download
page I have being hiding elements in javascript as per justin's example. So
if there is no dev_release the beta download won't be shown and we will end
up with just a link to the nightly.

I have wasted a bit too much time ironing out the website glitches and
would like to see a few more devs get comfortable with it :)
--
Jody

Jody Garnett


On Mon, Jul 28, 2014 at 5:10 AM, Justin Deoliveira <
[email protected]> wrote:

> It is possible to use a different template but it would mean a lot of
> duplication.
>
> The template language [1] supports conditionals and may other constructs
> so I would just add a conditional around the adding of any new elements to
> the page. Every release page declares its version so I would use that as
> the input. To do it cleanly I guess we would probably need a custom filter
> to compare versions. Adding such things is pretty straight forward [2].
> Jody is a rubyist, so it should be easy for him to add a new version
> compare filter :)
>
> [1] http://jekyllrb.com/docs/templates/
> [2] http://jekyllrb.com/docs/plugins/
>
>
> On Mon, Jul 28, 2014 at 12:27 AM, Andrea Aime <
> [email protected]> wrote:
>
>> On Mon, Jul 28, 2014 at 12:53 AM, Jody Garnett <[email protected]>
>> wrote:
>>
>>> Yes if we change the template previous pages are instantly modified. A
>>> couple months ago I moved the extensions around for previous releases to
>>> avoid broken links.
>>>
>>
>> Well, eventually we'll need a way to have a new extension be added only
>> to the releases that
>> do contain it.
>> Is it possible to have alternate templates?
>>
>> Cheers
>> Andrea
>>
>> --
>> ==
>> GeoServer Professional Services from the experts! Visit
>> http://goo.gl/NWWaa2 for more information.
>> ==
>>
>> Ing. Andrea Aime
>> @geowolf
>> Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via Poggio alle Viti 1187
>> 55054  Massarosa (LU)
>> Italy
>> phone: +39 0584 962313
>> fax: +39 0584 1660272
>> mob: +39  339 8844549
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Infragistics Professional
>> Build stunning WinForms apps today!
>> Reboot your WinForms applications with our WinForms controls.
>> Build a bridge from your legacy apps to the future.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
>
> --
> Justin Deoliveira
> VP Engineering | Boundless <http://boundlessgeo.com/>
> [email protected]
> @boundlessgeo <http://twitter.com/boundlessgeo/>
>
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to