blob: e0741da740b41c6c412dff7a129f0ac87717ef05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
(require 'package)
(package-initialize)
(require 'weblorg)
(weblorg-site
:name "Philipp Geyer"
:base-url "https://philippgeyer.co.uk"
:theme nil
:author "Philipp Geyer")
;; landing page
(weblorg-route
:name "index"
:input-pattern "pages/intro.org"
:template "page.html"
:output "output/index.html"
:url "/"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
;; 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"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
;; route for rendering the index page of the blog
(weblorg-route
:name "blog"
:input-pattern "posts/*.org"
:input-aggregate #'weblorg-input-aggregate-all-desc
:template "blog.html"
:output "output/blog.html"
:url "/blog.html"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
;; route for rendering each page
(weblorg-route
:name "pages"
:input-pattern "pages/*.org"
:template "page.html"
:output "output/{{ slug }}.html"
:url "/{{ slug }}.html"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
;; route for rendering the index page of articles
(weblorg-route
:name "articles"
:input-pattern "pages/*.org"
:input-aggregate #'weblorg-input-aggregate-all-desc
:template "articles.html"
:output "output/articles.html"
:url "/articles.html"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
:input-aggregate #'weblorg-input-aggregate-all-desc
(weblorg-route
:name "cv"
:input-pattern "cv/*.org"
:template "page.html"
:output "output/cv/{{ slug }}.html"
:url "/cv/{{slug }}.html"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
;; route for static assets that also copies files to output directory
(weblorg-copy-static
:output "static/{{ file }}"
:url "/static/{{ file }}"
:site (weblorg-site
:base-url "https://philippgeyer.co.uk"))
(setq debug-on-error t)
(weblorg-export)
|