(defun shtarkov.net-category (custom-id)
(cadr (string-split custom-id "/")))
+(defun shtarkov.net-date (date)
+ (unless date (user-error "Expected a date."))
+ (cadr (string-split date "[<> ]")))
+
(defun shtarkov.net-home (page-tree pages _global)
(let* ((website-name (one-default-website-name pages))
(content (org-export-data-with-backend
(title (org-element-property :raw-value page-tree))
(category
(shtarkov.net-category (org-element-property :CUSTOM_ID page-tree)))
- (date (org-element-property :DATE page-tree))
+ (date (shtarkov.net-date (org-element-property :DATE page-tree)))
(content (org-export-data-with-backend
(org-element-contents page-tree)
'shtarkov.net-ox nil)))