-
Notifications
You must be signed in to change notification settings - Fork 1
/
publishconf.py
executable file
·39 lines (28 loc) · 996 Bytes
/
publishconf.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
import multiprocessing
sys.path.append(os.curdir)
from pelicanconf import * # noqa: F403, E402
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"