1.3.1 • Published 10 years ago
ryanaghdam-content v1.3.1
ryanaghdam-content
A package that provides the content for ryanaghdam.com.
Domain
Post
A Post is an Object that has:
a
contentproperty which contains render HTML markup for the post.a
metadataproperty which contains information related to the post. The metadata object should have at least atitleanddateproperty.
API
getBySlug(String) -> Post
Returns a post that matches the given slug. An error is thrown if a matching post is not found.
getAllPosts() -> Post
Returns all Posts, sorted by date (descending).