split util.marker & util.priority lib

This commit is contained in:
rcmerci
2021-05-10 15:49:39 +08:00
committed by Tienson Qin
parent ac7f6e1967
commit 09b2ea368d
7 changed files with 77 additions and 66 deletions

View File

@@ -1,6 +1,7 @@
(ns frontend.components.page
(:require [rum.core :as rum]
[frontend.util :as util :refer-macros [profile]]
[frontend.util.marker :as marker]
[frontend.tools.html-export :as html-export]
[frontend.handler.file :as file]
[frontend.handler.page :as page-handler]
@@ -238,7 +239,7 @@
(let [current-repo (state/sub :git/current-repo)
repo (or repo current-repo)
page-name (string/lower-case path-page-name)
marker-page? (util/marker? page-name)
marker-page? (marker/marker? page-name)
priority-page? (contains? #{"a" "b" "c"} page-name)
block? (util/uuid-string? page-name)
block-id (and block? (uuid page-name))