Skip to content

Commit

Permalink
fix: do not show intro on published sites
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk authored and tiensonqin committed Dec 3, 2020
1 parent c49a317 commit 9cf79e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/frontend/components/journal.cljs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(ns frontend.components.journal
(:require [rum.core :as rum]
[frontend.util :as util :refer-macros [profile]]
[frontend.config :as config]
[frontend.date :as date]
[frontend.db-mixins :as db-mixins]
[frontend.handler.notification :as notification]
[frontend.handler.page :as page-handler]
[frontend.handler.editor :as editor-handler]
[frontend.db :as db]
[frontend.state :as state]
[clojure.string :as string]
[frontend.ui :as ui]
[frontend.components.content :as content]
[frontend.components.block :as block]
Expand Down Expand Up @@ -68,6 +68,7 @@
today? (= (string/lower-case title)
(string/lower-case (date/journal-name)))
intro? (and (not (state/logged?))
(not config/publishing?)
today?)]
[:div.flex-1.journal.page {:class (if intro? "intro" "")}
(ui/foldable
Expand Down

0 comments on commit 9cf79e9

Please sign in to comment.