gblog/post
Types
pub type Post {
Post(
title: String,
status: String,
path: String,
tags: List(String),
excerpt: String,
content: String,
published_at: String,
year: Int,
)
}
Constructors
-
Post( title: String, status: String, path: String, tags: List(String), excerpt: String, content: String, published_at: String, year: Int, )
Values
pub fn build(
load_posts: fn() -> promise.Promise(dynamic.Dynamic),
) -> promise.Promise(Result(List(Post), List(decode.DecodeError)))
pub fn tags_to_json(tags: List(String)) -> String