cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

enhanced homepage handling & debug option #79

Closed jerger closed 7 years ago

jerger commented 7 years ago

Hi, I added a enhanced homepage handling. You're now able to fund homepage on a page instead of newest post.

In order to do so, you can add a page containing following meta:

{:title "some title"   ;not relevant to feature
 :layout :home        ;other layout may be chosen
 :page-index 0        ;if there are more than one defined homepages
 :home? true          ;relevant meta
}

Layout will be respected. If you have more than one homepage, the first is chosen. Homepages will not be rendered as normal page.

As I can see, I preserved backward compatibility.

In addition I added a :debug? switch to configuration - so a more verbose output can be triggered.

lacarmen commented 7 years ago

Looks good! Would you be up for updating the documentation as well? These would be the pages to update:

  1. https://github.com/cryogen-project/cryogen-docs/blob/master/resources/templates/md/docs/configuration.md
  2. https://github.com/cryogen-project/cryogen-docs/blob/master/resources/templates/md/docs/customizing-the-index.md
  3. https://github.com/cryogen-project/cryogen-docs/blob/master/resources/templates/md/docs/creating-pages.md
jerger commented 7 years ago

done :-)