Created
June 25, 2021 15:59
-
-
Save andrewmcodes/e172bc2c073682fd49e6293b57880af4 to your computer and use it in GitHub Desktop.
Bridgetown 0.21 Ruby Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###ruby | |
front_matter do | |
layout :default | |
title "Blog" | |
description "A collection of my posts, tutorials, and thoughts that I've shared publicly" | |
permalink "/blog/" | |
end | |
### | |
render PostsComponent.new do |c| | |
c.header(title: resource.data.title) | |
site.collections.posts.resources.each { |post| c.post(post: post) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment