Skip to content

Commit

Permalink
feat: JSファイルも非同期読み込みにする
Browse files Browse the repository at this point in the history
  • Loading branch information
kijimaD committed Nov 14, 2024
1 parent 9e5a103 commit 3aaedf8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions publish.el
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
;; (a (@ (class "nav-link text-dark") (href "/roam")) "Insomnia")
))))))))))

;; 参考 https://github.com/SystemCrafters/systemcrafters.github.io/blob/master/publish.el
(defun dw/site-footer (info)
(concat
;; "</div></div>"
Expand All @@ -126,7 +127,10 @@
(a (@ (class "nav-link text-secondary small px-0") (href "https://github.com/kijimaD")) "@kijimaD")))
(div (@ (class "col-md-4")) "")))))
(sxml-to-xml
`(script (@ (src "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"))))))
`(script (@ (defer "defer")
(src "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"))
;; Empty string to cause a closing </script> tag
""))))

(setq org-html-preamble #'dw/site-header
org-html-postamble #'dw/site-footer
Expand Down Expand Up @@ -281,7 +285,7 @@
(when (> (length backlinks) 0)
(insert "\n\n* Backlinks\n")
(dolist (backlink backlinks)
(message (concat "backlink: " (org-roam-node-title (org-roam-backlink-source-node backlink))))
(message (concat "-> backlink: " (org-roam-node-title (org-roam-backlink-source-node backlink))))
(let* ((source-node (org-roam-backlink-source-node backlink))
(node-file (org-roam-node-file source-node))
(file-name (file-name-nondirectory node-file))
Expand Down

0 comments on commit 3aaedf8

Please sign in to comment.