Skip to content

Commit

Permalink
Hide drafts in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiaborga committed May 20, 2024
1 parent 480d8ef commit 20bd542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions posts/org-features-test.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#+DATE: <2024-02-23 Fri>
#+OPTIONS: toc:nil num:nil
#+FILETAGS: :test:emacs:org-mode:
#+DRAFT: t


* Heading 1
Expand Down
2 changes: 2 additions & 0 deletions publish.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
(weblorg-route
:name "index"
:input-pattern "posts/*.org"
:input-filter (when (string= (getenv "ENV") "prod")
#'weblorg-input-filter-drafts)
:input-aggregate #'weblorg-input-aggregate-all-desc
:template "blog.html"
:output "public/index.html"
Expand Down

0 comments on commit 20bd542

Please sign in to comment.