            (concat asset-css)
            (map #(with-version ctx %))))))
 
-
 (defn js-list [ctx]
-    (map #(with-version ctx %) (conj asset-js "/js/salava.js")))
-
+  (map #(with-version ctx %) (conj asset-js "/js/salava.js")))
 
 (defn context-js [ctx]
   (let [site-name (get-in ctx [:config :core :site-name])
         share     {:site-name (get-in ctx [:config :core :share :site-name] site-name)
                    :hashtag   (get-in ctx [:config :core :share :hashtag] (->> (split site-name #" ")
                                                                                (map capitalize)
-                                                                               join)) }
+                                                                               join))}
         ctx-out   {:plugins         {:all (map plugin-str (get-in ctx [:config :core :plugins]))}
                    :user            (:user ctx)
                    :flash-message   (:flash-message ctx)


(defn main [ctx path]
  (GET path []
    :no-doc true
    :summary "Main HTML layout"
    :current-user current-user
    :flash-message flash-message
    (main-response ctx current-user flash-message nil)))

(defn main-meta [ctx path plugin]
  (GET path []
    :no-doc true
    :path-params [id :- s/Any]
    :summary "Main with meta tags"
    :current-user current-user
    :flash-message flash-message
    (let [meta-tags (case plugin
                      :badge (b/meta-tags ctx id)
                      :page (p/meta-tags ctx id)
                      :user (u/meta-tags ctx id)
                      :gallery (g/meta-tags ctx id))]
      (main-response ctx current-user flash-message meta-tags))))

(defn main-meta+
 "Process plugin paths with meta-tags and no path id."
 [ctx path plugin]
 (GET path []
   :no-doc true
   :summary "Main with meta tags"
   :current-user current-user
   :flash-message flash-message
   (let [meta-tags (case plugin
                    :application (app/meta-tags ctx))]
     (main-response ctx current-user flash-message meta-tags))))

                   :footer          (get-in ctx [:config :extra/theme :footer] nil)
                   :factory-url     (get-in ctx [:config :factory :url])
                   :show-terms?     (get-in ctx [:config :core :show-terms?] false)
                   :filter-options  (first (mapcat #(get-in ctx [:config % :filter-options] []) (get-plugins ctx)))}]
    (str "function salavaCoreCtx() { return " (json/write-str ctx-out) "; }")))

(defn include-meta-tags [ctx tags]
  (if tags
