Commit 1ee3590d authored by Pierre Neidhardt's avatar Pierre Neidhardt

publish.el: Update comments on timestamps

parent 256690d4
Pipeline #27729434 passed with stages
in 28 seconds
;; Inspiration: https://gitlab.com/pages/org-mode.
(require 'seq)
;; TODO: Load this file as .dir-locals for .org files so that we can org-publish from there?
;; TODO: Use Git time-stamps.
;; TODO: Add e-mail and other contacts to index.html.
(require 'ox-publish)
(require 'seq)
(add-to-list 'load-path ".")
(require 'feed-builder)
(require 'ox-publish)
;; TODO: Test org-timestamps with Gitlab.
;; Timestamps can be used to avoid rebuilding everything.
;; This is useful locally for testing.
;; It won't work on Gitlab when stored in ./: the timestamps file should
;; probably be put inside the public/ directory. It's not so useful there
;; however since generation is fast enough.
(setq org-publish-use-timestamps-flag t
org-publish-timestamp-directory "./")
;; Get rid of index.html~ and the like that pop up on next generation.
;; Get rid of index.html~ and the like that pop up during generation.
(setq make-backup-files nil)
(setq org-export-with-section-numbers nil
......@@ -86,10 +90,6 @@ See `org-publish-sitemap-default-entry'."
(list
(list "site-org"
:base-directory "./source/"
;; :base-extension ""
;; :exclude "."
;; :exclude (regexp-opt '("README" "foreword" "project-links"))
;; :include "index\.org"
:recursive t
:publishing-function '(org-html-publish-to-html)
:publishing-directory "./public/" ; TODO: Set dir relative to root so that we can use "C-c C-e P".
......@@ -102,7 +102,6 @@ See `org-publish-sitemap-default-entry'."
:sitemap-function #'org-publish-sitemap-ambrevar
;; :sitemap-ignore-case t
:sitemap-sort-files 'anti-chronologically
;; :html-link-home "../index.html"
:html-head-include-default-style nil
:html-head-include-scripts nil
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"../dark.css\">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment