claude changes
This commit is contained in:
@@ -96,9 +96,7 @@
|
||||
html
|
||||
nil t))
|
||||
|
||||
;; Wrap title with metadata section - use lambda to properly capture title
|
||||
;; Handle titles with nested HTML tags by matching everything between opening and closing h1 tags
|
||||
;; Use .* to match any characters (greedy) - will match up to the last </h1> which should be our closing tag
|
||||
;; Wrap title with metadata section — edit button removed
|
||||
(setq html
|
||||
(replace-regexp-in-string
|
||||
"<h1 class=\"title\">\\(.*\\)</h1>"
|
||||
@@ -107,18 +105,17 @@
|
||||
(format
|
||||
"<div class=\"title-section\">
|
||||
<div class=\"title-controls\">
|
||||
<button class=\"pane-fullscreen\" aria-label=\"Fullscreen\">F</button>
|
||||
<button class=\"pane-edit\" aria-label=\"Edit pane\">E</button>
|
||||
<button class=\"pane-fullscreen\" aria-label=\"Fullscreen\">⤢</button>
|
||||
<button class=\"pane-close\" aria-label=\"Close pane\">×</button>
|
||||
</div>
|
||||
<h1 class=\"title\">%s</h1>
|
||||
<div class=\"title-metadata\">
|
||||
<span class=\"metadata-item\">
|
||||
<span class=\"metadata-label\">planted:</span>
|
||||
<span class=\"metadata-label\">planted</span>
|
||||
<span class=\"metadata-value\">%s</span>
|
||||
</span>
|
||||
<span class=\"metadata-item\">
|
||||
<span class=\"metadata-label\">last tended to:</span>
|
||||
<span class=\"metadata-label\">tended</span>
|
||||
<span class=\"metadata-value\">%s</span>
|
||||
</span>
|
||||
</div>
|
||||
@@ -175,8 +172,10 @@
|
||||
<div id=\"search-results\"></div>
|
||||
</div>
|
||||
|
||||
<a href=\"https://zainezq.com\"> <img src=\"/assets/2_to_1.svg\" alt=\"Web logo\" class=\"web-logo\" /> </a>
|
||||
<button id=\"close-all\">Close All</button>
|
||||
<div class=\"banner-actions\">
|
||||
<button id=\"theme-toggle\" aria-label=\"Toggle theme\" title=\"Toggle light/dark\"></button>
|
||||
<button id=\"close-all\">close all</button>
|
||||
</div>
|
||||
</div>
|
||||
"
|
||||
)
|
||||
@@ -185,7 +184,7 @@
|
||||
"<footer>
|
||||
<div class=\"copyright-container\">
|
||||
<div class=\"copyright\">
|
||||
Copyright © 2022-2025 Zaine Qayyum. All rights reserved unless otherwise noted.</div></div>
|
||||
Copyright © 2022-2026 Zaine Qayyum. All rights reserved unless otherwise noted.</div></div>
|
||||
<div class=\"generated\">
|
||||
Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"https://www.gnu.org\">GNU</a>/<a href=\"https://www.kernel.org/\">Linux</a>
|
||||
</div>
|
||||
@@ -237,20 +236,6 @@ Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"htt
|
||||
nil))))
|
||||
|
||||
|
||||
(defun my/org-export-insert-backlinks (_backend)
|
||||
"Insert Org-roam backlinks before export, with HTML attributes."
|
||||
(when (and (featurep 'org-roam)
|
||||
(org-roam-node-at-point))
|
||||
(let ((backlinks (my/get-org-roam-backlinks (buffer-file-name))))
|
||||
(when backlinks
|
||||
(goto-char (point-max))
|
||||
(insert "\n#+ATTR_HTML: :class backlinks-section :id backlinks\n Backlinks\n")
|
||||
(insert "#+ATTR_HTML: :class backlinks-list\n")
|
||||
(dolist (bl backlinks)
|
||||
(insert (format "- %s\n"
|
||||
(plist-get bl :link))))))))
|
||||
|
||||
|
||||
(defun my/org-export-insert-backlinks (_backend)
|
||||
"Insert Org-roam backlinks before export."
|
||||
(when (and (buffer-file-name)
|
||||
|
||||
Reference in New Issue
Block a user