Add the :base-url to org rendering context

This commit is contained in:
Sameer Rahmani 2022-06-29 17:20:28 +01:00
parent ab977855e2
commit 1cc1b49c00
3 changed files with 5 additions and 6 deletions

View File

@ -55,7 +55,7 @@ serve: build
.PHONY: deploy-docs .PHONY: deploy-docs
deploy-docs: docs deploy-docs: docs
rsync -vlcr --delete-after ./build/* core.lxsameer.com:/home/www/public/fg42/ rsync -vlcr --delete-after ./build/site-build/* core.lxsameer.com:/home/www/public/fg42/
.PHONY: dummy-x .PHONY: dummy-x
dummy-x: dummy-x:

View File

@ -311,9 +311,8 @@ Not pages."
(message "Creating the main index file") (message "Creating the main index file")
(copy-template (from-root "/docs/site/templates/index.org") (copy-template (from-root "/docs/site/templates/index.org")
(expand-file-name "site/index.org" build-dir) (expand-file-name "site/index.org" build-dir)
(list `((:links . ,(latest-org-list base-url))
(cons :links (:base-url . ,base-url)))
(latest-org-list base-url))))
(message "Creating categories") (message "Creating categories")
(copy-template (from-root "/docs/site/templates/categories.org") (copy-template (from-root "/docs/site/templates/categories.org")

View File

@ -9,10 +9,10 @@
#+INCLUDE: "../../README.org::*Future Gadgets 42" :only-contents t #+INCLUDE: "../../README.org::*Future Gadgets 42" :only-contents t
* Contribute * Contribute
FG42 made possible by the effort of the community of [[http:/pages/contributors.html][Contributors]]. FG42 made possible by the effort of the community of [[<<<:base-url>>>/pages/contributors.html][Contributors]].
If you're interested in *FG42* and wants to contribute to the project please follow If you're interested in *FG42* and wants to contribute to the project please follow
the [[http:/pages/how-to-contribute.html][How to Contribute Guitd]]. Also please read our [[http:/pages/code-of-conduct.html][Code of Conduct]] as well. the [[<<<:base-url>>>/pages/how-to-contribute.html][How to Contribute Guitd]]. Also please read our [[<<<:base-url>>>/pages/code-of-conduct.html][Code of Conduct]] as well.
* Recent updates: * Recent updates:
<<<:links>>> <<<:links>>>