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
14.2k stars 970 forks source link

Add support for hide front matter from in markdown source #2682

Closed LitoMore closed 3 weeks ago

LitoMore commented 3 weeks ago

Currently we can only use +++ and --- to define front matter. Both of these methods will display a not-so-good-looking header on the markdown preview page.

How about allowing +++ and --- to use a format to hide them?

Something like the blow:

<!--
+++
title = "Still working" 
+++
-->
<!--
---
title = "Still working"
---
-->
<!--+
title = "Still working"
+-->
<!---
title = "Still working"
--->

What do you think?

Keats commented 3 weeks ago

I don't think it would be an improvement

LitoMore commented 3 weeks ago

@Keats It's OK. Thank you for your response.