Activate the custom parser.
This commit is contained in:
parent
1bf44f3344
commit
f7c9ad7da9
|
@ -3,10 +3,10 @@ defmodule JOL.Blog do
|
||||||
alias JOL.Blog.Parser
|
alias JOL.Blog.Parser
|
||||||
|
|
||||||
use NimblePublisher,
|
use NimblePublisher,
|
||||||
build: Post,
|
build: JOL.Blog.Post,
|
||||||
from: Application.app_dir(:jol, "priv/posts/**/*.md"),
|
from: Application.app_dir(:jol, "priv/posts/**/*.md"),
|
||||||
parser: Parser,
|
parser: Parser,
|
||||||
as: :posts
|
as: :posts,
|
||||||
|
|
||||||
@posts Enum.sort_by(@posts, & &1.date, {:desc, Date})
|
@posts Enum.sort_by(@posts, & &1.date, {:desc, Date})
|
||||||
@tags @posts |> Enum.flat_map(& &1.tags) |> Enum.uniq() |> Enum.sort()
|
@tags @posts |> Enum.flat_map(& &1.tags) |> Enum.uniq() |> Enum.sort()
|
||||||
|
|
Loading…
Reference in a new issue