fix: deprecation warning for namespace macro

This commit is contained in:
Gabriel Horner
2025-06-23 10:02:11 -04:00
parent 957eab73d8
commit b4ed4ec55c

View File

@@ -1898,7 +1898,7 @@
(= name "namespace")
(if (config/db-based-graph? (state/get-current-repo))
[:div.warning "Namespace is deprecated, use tags instead"]
[:div.warning (str "{{namespace}} is deprecated. Use the " common-config/library-page-name " feature instead.")]
(let [namespace (first arguments)]
(when-not (string/blank? namespace)
(let [namespace (string/lower-case (page-ref/get-page-name! namespace))