getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.99k stars 964 forks source link

Themes support #107

Closed Keats closed 7 years ago

Keats commented 7 years ago

Superseding #91 as a general theme discussion for Gutenberg.

A few questions for theme users since I'm not one:

booyaa commented 7 years ago

I take it Hugo's themes are very go html/template centric? If not, could you utilise their theme system like you did with the sublime themes for the syntax highlighting (that was a stroke of genius btw)?

Keats commented 7 years ago

It should be easy enough to port most of the themes from hugo, it took me about 10min to port my own site. Hugo has a separate themes directory though so I would need to be able to merge templates/static from another directory.

you did with the sublime themes for the syntax highlighting (that was a stroke of genius btw)

That's syntect, not me! Cobalt uses it as well but in a more limited fashion.

Keats commented 7 years ago

One command that would be nice to add is something like gutenberg dummy-serve that will create a fake site and serve it to help with template development. Not sure it's worth the effort though.

Keats commented 7 years ago

Example for other static site generators:

I guess the tricky part for Gutenberg is how to watch files in a themes folder and load the right templates

Keats commented 7 years ago

114 is working and the first theme is available at https://github.com/Keats/hyde

booyaa commented 7 years ago

schweet! will give it a go!