- (insert "#+OPTIONS: ^:nil\n") ; do not use underscores as subscript
- (insert (concat "#+TITLE: " title "\n\n"))
- (insert (org-list-to-org list))))
+ (let* ((filenames (my-blog-parse-sitemap-list list))
+ (project-plist (assoc "posts" org-publish-project-alist))
+ (articles (my-blog-sort-article-list filenames project-plist)))
+ (dolist (file filenames)
+ (let* ((abspath (file-name-concat "/home/frederik/websites/stage.vanrenterghem.biz/source/posts" file))
+ (relpath (file-relative-name abspath "/home/frederik/websites/stage.vanrenterghem.biz/source/"))
+ (title (org-publish-find-title file project-plist))
+ (date (format-time-string "%e %b %Y" (org-publish-find-date file project-plist))))
+ (insert (concat "* [[file:" relpath "][" date " - " title "]]\n"))))
+ (goto-char (point-min))
+ (insert "#+OPTIONS: ^:nil\n")))) ; do not use underscores as subscript