Activate the custom parser.

This commit is contained in:
Jessica Canady 2024-06-04 12:12:43 -04:00
parent 6c3ecdf038
commit dee6088508
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -1,10 +1,9 @@
defmodule JOL.Blog do
alias JOL.Blog.Post
use NimblePublisher,
build: Post,
build: JOL.Blog.Post,
from: Application.app_dir(:jol, "priv/posts/**/*.md"),
as: :posts
as: :posts,
parser: JOL.Blog.Parser
@posts Enum.sort_by(@posts, & &1.date, {:desc, Date})
@tags @posts |> Enum.flat_map(& &1.tags) |> Enum.uniq() |> Enum.sort()