blob: 64fdeee096f8fdc3d9a575427a4fe192d66e341d [file] [log] [blame]
Luigi Santivettif72f6572020-02-17 23:11:56 +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
102# https://python-markdown.github.io/reference/#markdown
103MARKDOWN = {
104 'extension_configs': {
105 'markdown.extensions.codehilite': {'css_class': 'highlight', 'linenums' : True},
106 'markdown.extensions.extra': {},
107 'markdown.extensions.meta': {},
108 },
109 'output_format': 'html5',
110}
111
112#
113# Defines whether Pelican should use document-relative URLs or not. Only set
114# this to True when developing/testing# and only if you fully understand the
115# effect it can have on links/feeds.
116#RELATIVE_URLS = True
117
118# The URL to refer to an article.
119ARTICLE_URL = 'blog/{slug}.html'
120
121# The place where we will save an article.
122ARTICLE_SAVE_AS = 'blog/{slug}.html'
123
124# The URL to refer to an article which doesn’t use the default language.
125ARTICLE_LANG_URL = 'blog/{slug}-{lang}.html'
126
127# The place where we will save an article which doesn’t use the default
128# language.
129ARTICLE_LANG_SAVE_AS = 'blog/{slug}-{lang}.html'
130
131# The URL to refer to an article draft.
132DRAFT_URL = 'draft/blog/{slug}.html'
133
134# The place where we will save an article draft.
135DRAFT_SAVE_AS = 'draft/blog/{slug}.html'
136
137# The URL to refer to an article draft which doesn’t use the default language.
138DRAFT_LANG_URL = 'draft/blog/{slug}-{lang}.html'
139
140# The place where we will save an article draft which doesn’t use the default
141# language.
142DRAFT_LANG_SAVE_AS = 'draft/blog/{slug}-{lang}.html'
143
144# The URL we will use to link to a page.
145PAGE_URL = 'page/{slug}.html'
146
147# The location we will save the page. This value has to be the same as PAGE_URL
148# or you need to use a rewrite in your server config.
149PAGE_SAVE_AS = 'page/{slug}.html'
150
151# The URL we will use to link to a page which doesn’t use the default language.
152PAGE_LANG_URL = 'page/{slug}-{lang}.html'
153
154#The location we will save the page which doesn’t use the default language.
155PAGE_LANG_SAVE_AS = 'page/{slug}-{lang}.html'
156
157# The URL used to link to a page draft.
158DRAFT_PAGE_URL = 'draft/page/{slug}.html'
159
160# The actual location a page draft is saved at.
161DRAFT_PAGE_SAVE_AS = 'draft/page/{slug}.html'
162
163# The URL used to link to a page draft which doesn’t use the default language.
164DRAFT_PAGE_LANG_URL = 'draft/page/{slug}-{lang}.html'
165
166# The actual location a page draft which doesn’t use the default language is
167# saved at.
168DRAFT_PAGE_LANG_SAVE_AS = 'draft/page/{slug}-{lang}.html'
169
170# The URL to use for a category.
171CATEGORY_URL = 'category/{slug}.html'
172
173# The location to save a category.
174CATEGORY_SAVE_AS = 'category/{slug}.html'
175
176# The URL to use for a tag.
177TAG_URL = 'tag/{slug}.html'
178
179# The location to save the tag page.
180TAG_SAVE_AS = 'tag/{slug}.html'
181
182# The URL to use for an author.
183AUTHOR_URL = 'author/{slug}.html'
184
185# The location to save an author.
186AUTHOR_SAVE_AS = 'author/{slug}.html'
187
188# The location to save per-year archives of your posts.
189YEAR_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/index.html'
190
191# The URL to use for per-year archives of your posts. Used only if you have the
192# {url} placeholder in PAGINATION_PATTERNS.
193YEAR_ARCHIVE_URL = ''
194
195# The location to save per-month archives of your posts.
196MONTH_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/{date:%b}/index.html'
197
198# The URL to use for per-month archives of your posts. Used only if you have the
199# {url} placeholder in PAGINATION_PATTERNS.
200MONTH_ARCHIVE_URL = ''
201
202# The location to save per-day archives of your posts.
203DAY_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/{date:%b}/{date:%d}/index.html'
204
205# The URL to use for per-day archives of your posts. Used only if you have the
206# {url} placeholder in PAGINATION_PATTERNS.
207DAY_ARCHIVE_URL = ''
208
209# Gallery plugin
210PHOTO_LIBRARY = '/home/luigi/giggi.me.c/multimedia/gallery'
211PHOTO_GALLERY = (2000, 1333, 100)
212PHOTO_ARTICLE = (2000, 1333, 100)
213PHOTO_THUMB = (300, 200, 100)
214PHOTO_SQUARE_THUMB = False