nextcloud / website

An attempt to build a new website (obsolete)
7 stars 4 forks source link

add header and footer with partials #15

Open jospoortvliet opened 5 years ago

jospoortvliet commented 5 years ago

So we could use partials to create header and footer.

Alternatively, and possibly better, we could use the base stuff from here: https://gohugo.io/templates/base/

Your call, @MorrisJobke - I had a bit of fun playing with Hugo, I think we can make this work.

We'll have a lot of work ahead - we need variables like https://github.com/nextcloud/nextcloud.com/blob/master/strings.php and translations, for example...

Close & delete this one if it is useless ;-)

Signed-off-by: Jos Poortvliet jospoortvliet@gmail.com

jospoortvliet commented 5 years ago

Ok, it's a bit messy, question is if this is the right approach or not :D

skjnldsv commented 5 years ago

@jospoortvliet yes, this is the right approach I'd say. Not a hugo expert, but it looks sane. Maybe we could even split even more later on, to really have a nice grasp on the sections of a web page :)

MorrisJobke commented 5 years ago

Ok, it's a bit messy, question is if this is the right approach or not :D

Yes makes sense to me as well 👍

jospoortvliet commented 5 years ago

Please, one of you also look at https://gohugo.io/templates/base/ -> they say there that the partials stuff is the 'old' way and the base way the new way. Not that partials don't work, so we can use that - if you think it's fine, then - fine :smile: