Cherry.Portfolio.Talk (cherry v0.1.0-rc.1)

Copy Markdown View Source

A talk given at an event, with the recording and slides.

Summary

Functions

Materialises the struct from a validated portfolio document.

Newest-first ordering by date.

Types

t()

@type t() :: %Cherry.Portfolio.Talk{
  cv: Cherry.Portfolio.Curation.t() | nil,
  date: Date.t(),
  event: String.t(),
  highlights: [String.t()],
  html: String.t() | nil,
  slides: String.t() | nil,
  slug: String.t(),
  tags: [String.t()],
  title: String.t(),
  video: String.t() | nil
}

Functions

from_document(document)

@spec from_document(Cherry.Content.Document.t()) :: t()

Materialises the struct from a validated portfolio document.

sort_key(talk)

@spec sort_key(t()) :: :calendar.date()

Newest-first ordering by date.