|
|
@@ -555,17 +555,17 @@
|
|
|
(->elem :sub (map-inline config l))
|
|
|
["Tag" s]
|
|
|
(if (and s (util/tag-valid? s))
|
|
|
- [:a.tag.mr-1 {:href (rfe/href :page {:name s})
|
|
|
- :on-click (fn [e]
|
|
|
- (.preventDefault e)
|
|
|
- (let [repo (state/get-current-repo)
|
|
|
- page (db/pull repo '[*] [:page/name (string/lower-case (util/url-decode s))])]
|
|
|
- (when (gobj/get e "shiftKey")
|
|
|
- (state/sidebar-add-block!
|
|
|
- repo
|
|
|
- (:db/id page)
|
|
|
- :page
|
|
|
- {:page page}))))}
|
|
|
+ [:a.tag {:href (rfe/href :page {:name s})
|
|
|
+ :on-click (fn [e]
|
|
|
+ (.preventDefault e)
|
|
|
+ (let [repo (state/get-current-repo)
|
|
|
+ page (db/pull repo '[*] [:page/name (string/lower-case (util/url-decode s))])]
|
|
|
+ (when (gobj/get e "shiftKey")
|
|
|
+ (state/sidebar-add-block!
|
|
|
+ repo
|
|
|
+ (:db/id page)
|
|
|
+ :page
|
|
|
+ {:page page}))))}
|
|
|
(str "#" s)]
|
|
|
[:span.warning.mr-1 {:title "Invalid tag, tags only accept alphanumeric characters, \"-\", \"_\", \"@\" and \"%\"."}
|
|
|
(str "#" s)])
|