blob: 39a0e23e2e6eacfa89f212c77b0b21d2a95b9590 [file] [log] [blame]
Luigi Santivettid93cb0f2020-02-17 22:21:28 +00001#!/usr/bin/env python
2# -*- coding: utf-8 -*- #
3from __future__ import unicode_literals
4
5# For an exhaustive list of available variables and how to use them refer to
6# http://docs.getpelican.com/en/stable/settings.html
7
8# Reference for signing off posts
9AUTHOR = 'Luigi'
10
11# Reference to the site name
12SITENAME = 'Giggi.me'
13
14# Custom variable, introduced for keeping requests cosistent
15INDEX_LINK_AS = 'blog.html'
16
17# If set, stop treating index.html as default posts binder
18INDEX_SAVE_AS = INDEX_LINK_AS
19
20# URL path to the root
21SITEURL = 'https://www.giggi.me'
22
23# URL path to the theme folder
24THEMEURL = SITEURL
25
26# Local path to the markdown source folder
27PATH = 'content'
28
29# Local path to the current theme folder
30THEME = 'theme'
31
32# Default time zone
33TIMEZONE = 'Europe/London'
34
35# The default date format you want to use.
36DEFAULT_DATE_FORMAT = '%a %B %d %Y'
37
38# The extensions to use when looking up template files from template names.
39TEMPLATE_EXTENSION = [ '.html' ]
40
41# Default language
42DEFAULT_LANG = 'en'
43
44# Feed generation is usually not desired when developing
45FEED_ALL_ATOM = None
46
47#
48CATEGORY_FEED_ATOM = None
49
50#
51TRANSLATION_FEED_ATOM = None
52
53#
54AUTHOR_FEED_ATOM = None
55
56#
57AUTHOR_FEED_RSS = None
58
59# Social widget
60SOCIAL = (
61 ('Linux', 'https://www.debian.org'),
62 ('Mail', 'mailto:luigi.santivetti@gmail.com'),
63)
64
65#
66DEFAULT_PAGINATION = False
67
68# List of plugins paths utilised by this site
69PLUGIN_PATHS = [
70 'theme/plugins',
71]
72
73# List of plugins names
74PLUGINS = [
75 'assets',
76 'photos',
77]
78
79# Derive categories from the folder name
80USE_FOLDER_AS_CATEGORY = False
81
82# Show shortcuts to categories
83DISPLAY_CATEGORIES_ON_MENU = True
84
85# Show shortcuts to static pages (i.e. non articles)
86DISPLAY_PAGES_ON_MENU = False
87
88# Use cached html
89LOAD_CONTENT_CACHE = False
90
91# List of menu items
92MENUITEMS = [
93 ('Git', 'page/git.html'),
94 ('Mail', 'page/mail.html'),
95 ('Ftp', 'page/ftp.html'),
96 ('About', 'page/about.html'),
97 ('Invite', 'page/invite.html'),
98 ('Login', 'page/login.html'),
99]
100
101# Enable line numbers
102MARKDOWN = {
103 'extension_configs': {
104 'markdown.extensions.codehilite': {'css_class': 'highlight', 'linenums' : True},
105 'markdown.extensions.extra': {},
106 'markdown.extensions.meta': {},
107 },
108 'output_format': 'html5',
109}
110
111#
112# Defines whether Pelican should use document-relative URLs or not. Only set
113# this to True when developing/testing# and only if you fully understand the
114# effect it can have on links/feeds.
115#RELATIVE_URLS = True
116
117# The URL to refer to an article.
118ARTICLE_URL = 'blog/{slug}.html'
119
120# The place where we will save an article.
121ARTICLE_SAVE_AS = 'blog/{slug}.html'
122
123# The URL to refer to an article which doesn’t use the default language.
124ARTICLE_LANG_URL = 'blog/{slug}-{lang}.html'
125
126# The place where we will save an article which doesn’t use the default
127# language.
128ARTICLE_LANG_SAVE_AS = 'blog/{slug}-{lang}.html'
129
130# The URL to refer to an article draft.
131DRAFT_URL = 'draft/blog/{slug}.html'
132
133# The place where we will save an article draft.
134DRAFT_SAVE_AS = 'draft/blog/{slug}.html'
135
136# The URL to refer to an article draft which doesn’t use the default language.
137DRAFT_LANG_URL = 'draft/blog/{slug}-{lang}.html'
138
139# The place where we will save an article draft which doesn’t use the default
140# language.
141DRAFT_LANG_SAVE_AS = 'draft/blog/{slug}-{lang}.html'
142
143# The URL we will use to link to a page.
144PAGE_URL = 'page/{slug}.html'
145
146# The location we will save the page. This value has to be the same as PAGE_URL
147# or you need to use a rewrite in your server config.
148PAGE_SAVE_AS = 'page/{slug}.html'
149
150# The URL we will use to link to a page which doesn’t use the default language.
151PAGE_LANG_URL = 'page/{slug}-{lang}.html'
152
153#The location we will save the page which doesn’t use the default language.
154PAGE_LANG_SAVE_AS = 'page/{slug}-{lang}.html'
155
156# The URL used to link to a page draft.
157DRAFT_PAGE_URL = 'draft/page/{slug}.html'
158
159# The actual location a page draft is saved at.
160DRAFT_PAGE_SAVE_AS = 'draft/page/{slug}.html'
161
162# The URL used to link to a page draft which doesn’t use the default language.
163DRAFT_PAGE_LANG_URL = 'draft/page/{slug}-{lang}.html'
164
165# The actual location a page draft which doesn’t use the default language is
166# saved at.
167DRAFT_PAGE_LANG_SAVE_AS = 'draft/page/{slug}-{lang}.html'
168
169# The URL to use for a category.
170CATEGORY_URL = 'category/{slug}.html'
171
172# The location to save a category.
173CATEGORY_SAVE_AS = 'category/{slug}.html'
174
175# The URL to use for a tag.
176TAG_URL = 'tag/{slug}.html'
177
178# The location to save the tag page.
179TAG_SAVE_AS = 'tag/{slug}.html'
180
181# The URL to use for an author.
182AUTHOR_URL = 'author/{slug}.html'
183
184# The location to save an author.
185AUTHOR_SAVE_AS = 'author/{slug}.html'
186
187# The location to save per-year archives of your posts.
188YEAR_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/index.html'
189
190# The URL to use for per-year archives of your posts. Used only if you have the
191# {url} placeholder in PAGINATION_PATTERNS.
192YEAR_ARCHIVE_URL = ''
193
194# The location to save per-month archives of your posts.
195MONTH_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/{date:%b}/index.html'
196
197# The URL to use for per-month archives of your posts. Used only if you have the
198# {url} placeholder in PAGINATION_PATTERNS.
199MONTH_ARCHIVE_URL = ''
200
201# The location to save per-day archives of your posts.
202DAY_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/{date:%b}/{date:%d}/index.html'
203
204# The URL to use for per-day archives of your posts. Used only if you have the
205# {url} placeholder in PAGINATION_PATTERNS.
206DAY_ARCHIVE_URL = ''
207
208# Gallery plugin
209PHOTO_LIBRARY = '/home/luigi/giggi.me.c/multimedia/gallery'
210PHOTO_GALLERY = (2000, 1333, 100)
211PHOTO_ARTICLE = (2000, 1333, 100)
212PHOTO_THUMB = (300, 200, 100)
213PHOTO_SQUARE_THUMB = False