-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpublishconf.py
More file actions
executable file
·42 lines (31 loc) · 1.04 KB
/
Copy pathpublishconf.py
File metadata and controls
executable file
·42 lines (31 loc) · 1.04 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import multiprocessing
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import * # noqa: F403, E402
if "SITEURL" in os.environ:
SITEURL = os.environ["SITEURL"]
else:
SITEURL = "https://offby1.website"
RELATIVE_URLS = False
FEED_DOMAIN = SITEURL
FEED_MAX_ITEMS = 15
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"
TAG_FEED_ATOM = "feeds/tag-{slug}.atom.xml"
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
GOOGLE_ANALYTICS = "UA-55657377-1"
DEFAULT_METADATA = {
"status": "draft",
}
# for publication, let's really hammer the jobs.
PHOTO_RESIZE_JOBS = max(multiprocessing.cpu_count(), 1)
_repository = os.environ.get("GITHUB_REPOSITORY", "offbyone/ideas")
_tree = os.environ.get("GITHUB_SHA", "main")
REPOSITORY_ROOT = f"https://github.com/{_repository}/tree/{_tree}/content"