You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/tableau/extensions/post_extension.ex
+11
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ defmodule Tableau.PostExtension do
21
21
title: "The elixir-tools Update Vol. 3"
22
22
permalink: "/news/:title"
23
23
date: "~N[2023-09-19 01:00:00]"
24
+
draft: false
24
25
layout: "ElixirTools.PostLayout"
25
26
converter: "MyConverter"
26
27
```
@@ -40,6 +41,7 @@ defmodule Tableau.PostExtension do
40
41
- `:future` - boolean - Show posts that have dates later than the current timestamp, or time at which the site is generated.
41
42
- `:permalink` - string - Default output path for posts. Accepts `:title` as a replacement keyword, replaced with the post's provided title. If a post has a `:permalink` provided, that will override this value _for that post_.
42
43
- `:layout` - string - Elixir module providing page layout for posts. Default is nil
44
+
- `:draft` - boolean - Only show this post in dev.
43
45
44
46
### Example
45
47
@@ -90,6 +92,7 @@ defmodule Tableau.PostExtension do
90
92
map(%{
91
93
optional(:enabled)=>bool(),
92
94
optional(:dir,"_posts")=>str(),
95
+
optional(:drafts,"_drafts")=>str(),
93
96
optional(:future,false)=>bool(),
94
97
optional(:permalink)=>str(),
95
98
optional(:layout)=>oneof([atom(),str()])
@@ -129,6 +132,14 @@ defmodule Tableau.PostExtension do
0 commit comments