-
Notifications
You must be signed in to change notification settings - Fork 1
/
publishconf.py
71 lines (52 loc) · 1.86 KB
/
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
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
#!/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
sys.path.append(os.curdir)
from pelicanconf import *
# SITEURL = 'http://takwas.github.io'
# SITEURL = 'https://tosinmash.com'
SITEURL = ''
SITE_FULL_URL = SITEURL
SITEROOT = '/'
# During production, we do not want urls to be relative,
# they should instead be relative to <SITEURL> above
RELATIVE_URLS = False
# Feeds config
FEED_DOMAIN = SITEURL
FEED_ATOM = 'feeds/main.atom.xml'
FEED_RSS = 'feeds/main.rss.xml'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
TAG_FEED_ATOM = 'feeds/%s.atom.xml'
TAG_FEED_RSS = 'feeds/%s.rss.xml'
#FEED_MAX_ITEMS
# Support for Disqus comments
DISQUS_SITENAME = 'acetakwas-log'
# DO NOT DELETE the "output" directory; it is git version-controlled
DELETE_OUTPUT_DIRECTORY = False
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""
# Load gravatar for production
SITE_THUMBNAIL = "http://www.gravatar.com/avatar/{0}.jpg?s=80&r=g&d=identicon".format(AUTHOR_EMAIL_HASH)
ARTICLE_URL = 'article/{slug}.html'
ARTICLE_SAVE_AS = 'article/{slug}.html'
CATEGORY_URL = 'category/{slug}.html'
CATEGORY_SAVE_AS = 'category/{slug}.html'
TAG_URL = 'tag/{slug}.html'
TAG_SAVE_AS = 'tag/{slug}.html'
PAGE_URL = 'pages/{slug}/'
PAGE_SAVE_AS = 'pages/{slug}.html'
ARCHIVES_SAVE_AS = 'archives.html'
CATEGORIES_SAVE_AS = 'categories.html'
TAGS_SAVE_AS = 'tags.html'
INDEX_SAVE_AS = 'index.html'
# YEAR_ARCHIVE_SAVE_AS = u'posts/{date:%Y}/{slug}/index.html'
# MONTH_ARCHIVE_SAVE_AS = u'posts/{date:%Y}/{date:%b}/{slug}/index.html'
# DAY_ARCHIVE_SAVE_AS = u'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'