Refactor the copy-template context
This commit is contained in:
parent
1cc1b49c00
commit
f36b052bc8
|
@ -49,9 +49,8 @@
|
||||||
".org")))
|
".org")))
|
||||||
(copy-template cube-template
|
(copy-template cube-template
|
||||||
cube-file
|
cube-file
|
||||||
(list
|
`((:title . ,(plist-get props :title))
|
||||||
(cons :title (plist-get props :title))
|
(:docs . ,docs)))))
|
||||||
(cons :docs docs)))))
|
|
||||||
|
|
||||||
|
|
||||||
(defun fg42/build-docs-copy-base (build-dir)
|
(defun fg42/build-docs-copy-base (build-dir)
|
||||||
|
@ -317,17 +316,15 @@ Not pages."
|
||||||
(message "Creating categories")
|
(message "Creating categories")
|
||||||
(copy-template (from-root "/docs/site/templates/categories.org")
|
(copy-template (from-root "/docs/site/templates/categories.org")
|
||||||
(expand-file-name "site/categories/index.org" build-dir)
|
(expand-file-name "site/categories/index.org" build-dir)
|
||||||
(list
|
`((:links . ,(category-org-list))))
|
||||||
(cons :links
|
|
||||||
(category-org-list))))
|
|
||||||
(create-category-pages build-dir)
|
(create-category-pages build-dir)
|
||||||
|
|
||||||
(message "Creating tags")
|
(message "Creating tags")
|
||||||
(copy-template (from-root "/docs/site/templates/tags.org")
|
(copy-template (from-root "/docs/site/templates/tags.org")
|
||||||
(expand-file-name "site/tags/index.org" build-dir)
|
(expand-file-name "site/tags/index.org" build-dir)
|
||||||
(list
|
`((:links . ,(tags-org-list))))
|
||||||
(cons :links
|
|
||||||
(tags-org-list))))
|
|
||||||
(create-tag-pages build-dir)
|
(create-tag-pages build-dir)
|
||||||
|
|
||||||
(setq org-html-preamble #'preamble-fn)
|
(setq org-html-preamble #'preamble-fn)
|
||||||
|
|
Loading…
Reference in New Issue