pablomartinezalvarez / glayu

A static site generator for mid-sized sites.
MIT License
79 stars 4 forks source link

Custom Layouts for posts and pages #3

Closed pmartinezalvarez closed 7 years ago

pmartinezalvarez commented 7 years ago

Each custom layout will be stored into the theme _layouts folder, and will be assigned to a post or page using the layout front-matter variable.

Ex: A custom layout file like ./themes/my-theme/_layouts/book-details-page.eex will be applied to a page using the front matter:

---
title: Moby-Dick
date: 2017-05-18 06:45:22
layout: book-details-page
---
pmartinezalvarez commented 7 years ago

de90e9eaedefba30beb2fcfb9c811480c341fd13