Skip to content

Error 'invalid time specification' #54

@fklappan

Description

@fklappan

I'm using the publish.el template from the "getting started" guide from the homepage with minimal changes because the require directive alone was not enough.

(add-to-list 'load-path "~/.emacs.d/elpa/weblorg-20210430.2251")
(add-to-list 'load-path "~/.emacs.d/elpa/templatel-20210425.2215")
;; Setup package management
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

;; Install and configure dependencies
(use-package templatel :ensure t)
(use-package htmlize
  :ensure t
  :config
  (setq org-html-htmlize-output-type 'css))

(use-package weblorg
  :ensure t)
  
(require 'weblorg)

;; route for rendering each post
(weblorg-route
 :name "posts"
 :input-pattern "posts/*.org"
 :template "post.html"
 :output "output/posts/{{ slug }}.html"
 :url "/posts/{{ slug }}.html")

 ;; route for rendering each page
(weblorg-route
 :name "pages"
 :input-pattern "pages/*.org"
 :template "page.html"
 :output "output/{{ slug }}.html"
 :url "/{{ slug }}.html")
 
;; Generate posts summary
(weblorg-route
 :name "index"
 :input-pattern "posts/*.org"
 :input-aggregate #'weblorg-input-aggregate-all-desc
 :template "blog.html"
 :output "output/index.html"
 :url "/")



;; route for static assets that also copies files to output directory
(weblorg-copy-static
 :output "static/{{ file }}"
 :url "/static/{{ file }}")

;; fire the engine and export all the files declared in the routes above
(weblorg-export)

The contents of the /pages and /posts directories are two simple org files with content like

#+TITLE: Meeting

* some meeting page

some text, lorem ipsum

after calling emacs --script publish.el i get the error message

Invalid time specification

I tried it on two different Windows 10 machines and one Manjaro machine.
Someone has an idea what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions