   (defun benmezger/conditional-hugo-enable ()
     (save-excursion
       (if (cdr (assoc "SETUPFILE" (org-roam--extract-global-props '("SETUPFILE"))))
-        (org-hugo-auto-export-mode +1)
+          (org-hugo-auto-export-mode +1)
         (org-hugo-auto-export-mode -1))))
   (add-hook 'org-mode-hook #'benmezger/conditional-hugo-enable))
 

  (map! :map org-mode-map
        :localleader
        (:prefix ("-" . "bibliography")
          "i" #'org-ref-insert-link
          "r" #'org-ref-insert-ref-link
          "l" #'org-ref-insert-bibliography-link
          "c" #'org-ref-insert-cite-with-completion))

  (citeproc-org-setup))


  (setq org-roam-index-file (concat org-roam-directory "/" "index.org"))

  (setq org-roam-capture-templates
        '(("d" "default" plain (function org-roam-capture--get-point)
           "%?"
           :file-name "%(format-time-string \"%Y-%m-%d--%H-%M-%SZ--${slug}\" (current-time) t)"
           :head "#+TITLE: ${title}
#+DATE: %T
#+FILETAGS: %^G
#+SETUPFILE: %(concat (file-name-as-directory org-directory) \"hugo.setup\")
