We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2105c7 commit 20bc997Copy full SHA for 20bc997
lib/tableau/extensions/post_extension/posts/post.ex
@@ -9,7 +9,7 @@ defmodule Tableau.PostExtension.Posts.Post do
9
attrs
10
|> Map.put(:body, body)
11
|> Map.put(:file, filename)
12
- |> Map.put(:layout, Module.concat([attrs.layout || post_config.layout]))
+ |> Map.put(:layout, Module.concat([attrs[:layout] || post_config.layout]))
13
|> Map.put_new_lazy(:title, fn ->
14
with {:ok, document} <- Floki.parse_fragment(body),
15
[hd | _] <- Floki.find(document, "h1") do
0 commit comments