瀏覽代碼

fix: date format order

Tienson Qin 4 年之前
父節點
當前提交
13eb3b347f
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/main/frontend/state.cljs

+ 4 - 2
src/main/frontend/state.cljs

@@ -949,8 +949,10 @@
   []
   []
   (or
   (or
    (when-let [repo (get-current-repo)]
    (when-let [repo (get-current-repo)]
-     (or (get-in @state [:config repo :date-formatter])
-         (get-in @state [:config repo :journal/page-title-format])))
+     (or
+      (get-in @state [:config repo :journal/page-title-format])
+      ;; for compatibility
+      (get-in @state [:config repo :date-formatter])))
    ;; TODO:
    ;; TODO:
    (get-in @state [:me :settings :date-formatter])
    (get-in @state [:me :settings :date-formatter])
    "MMM do, yyyy"))
    "MMM do, yyyy"))