-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.py
More file actions
74 lines (61 loc) · 1.71 KB
/
site.py
File metadata and controls
74 lines (61 loc) · 1.71 KB
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
# ------------------------- #
# Site Configuration File #
# ------------------------- #
import os
# Variables set here will be available in template files under a `site` attribute,
# e.g. {{ site.title }}.
# Choose the theme to use when building your site. This variable should specify
# the name of a theme directory in your site's 'lib' folder.
theme = "meteor"
# Site title.
title = "Joe Muller"
# Site tagline.
# tagline = ""
# Linked data for JSON-LD
site_ttl = """
@prefix sdo: <https://schema.org/>.
<https://joemull.net> a sdo:WebSite,
sdo:Blog;
sdo:url "https://joemull.net";
sdo:name "Joe Muller";
sdo:author <https://orcid.org/0000-0003-3230-6090>;
sdo:copyrightHolder <https://orcid.org/0000-0003-3230-6090>.
"""
author_ttl = """
@prefix sdo: <https://schema.org/>.
<https://orcid.org/0000-0003-3230-6090> a sdo:Person;
sdo:sameAs "https://bsky.app/profile/joemull.zirk.us.ap.brid.gy",
"https://bsky.app/profile/joemull.bsky.social",
"https://zirk.us/@joemull",
"https://github.com/joemull".
"""
# License
license = "https://creativecommons.org/licenses/by/4.0/"
# Domain for refernce links on PDF slidedecks
if os.environ.get("DEBUG"):
homepage = "http://localhost:8080/"
else:
homepage = "https://joemull.net/"
# Language
lang = "en"
# Extensions
extensions = [
"holly",
]
# Blog extension
holly = {
"roots": [
{"root_url": "@root/blog//"},
{"root_url": "@root/slides//"},
],
"homepage": {
"root_urls": ["@root/blog//"],
},
}
# Jinja settings
jinja_settings = {
"trim_blocks": True,
"lstrip_blocks": True,
}
# RSS settings
rss_root_urls = ["@root/blog//"]