Luigi Santivetti | f72f657 | 2020-02-17 23:11:56 +0000 | [diff] [blame^] | 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- # |
| 3 | from __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 |
| 9 | AUTHOR = 'Luigi' |
| 10 | |
| 11 | # Reference to the site name |
| 12 | SITENAME = 'Giggi.me' |
| 13 | |
| 14 | # Custom variable, introduced for keeping requests cosistent |
| 15 | INDEX_LINK_AS = 'blog.html' |
| 16 | |
| 17 | # If set, stop treating index.html as default posts binder |
| 18 | INDEX_SAVE_AS = INDEX_LINK_AS |
| 19 | |
| 20 | # URL path to the root |
| 21 | SITEURL = 'https://www.giggi.me' |
| 22 | |
| 23 | # URL path to the theme folder |
| 24 | THEMEURL = SITEURL |
| 25 | |
| 26 | # Local path to the markdown source folder |
| 27 | PATH = 'content' |
| 28 | |
| 29 | # Local path to the current theme folder |
| 30 | THEME = 'theme' |
| 31 | |
| 32 | # Default time zone |
| 33 | TIMEZONE = 'Europe/London' |
| 34 | |
| 35 | # The default date format you want to use. |
| 36 | DEFAULT_DATE_FORMAT = '%a %B %d %Y' |
| 37 | |
| 38 | # The extensions to use when looking up template files from template names. |
| 39 | TEMPLATE_EXTENSION = [ '.html' ] |
| 40 | |
| 41 | # Default language |
| 42 | DEFAULT_LANG = 'en' |
| 43 | |
| 44 | # Feed generation is usually not desired when developing |
| 45 | FEED_ALL_ATOM = None |
| 46 | |
| 47 | # |
| 48 | CATEGORY_FEED_ATOM = None |
| 49 | |
| 50 | # |
| 51 | TRANSLATION_FEED_ATOM = None |
| 52 | |
| 53 | # |
| 54 | AUTHOR_FEED_ATOM = None |
| 55 | |
| 56 | # |
| 57 | AUTHOR_FEED_RSS = None |
| 58 | |
| 59 | # Social widget |
| 60 | SOCIAL = ( |
| 61 | ('Linux', 'https://www.debian.org'), |
| 62 | ('Mail', 'mailto:luigi.santivetti@gmail.com'), |
| 63 | ) |
| 64 | |
| 65 | # |
| 66 | DEFAULT_PAGINATION = False |
| 67 | |
| 68 | # List of plugins paths utilised by this site |
| 69 | PLUGIN_PATHS = [ |
| 70 | 'theme/plugins', |
| 71 | ] |
| 72 | |
| 73 | # List of plugins names |
| 74 | PLUGINS = [ |
| 75 | 'assets', |
| 76 | 'photos', |
| 77 | ] |
| 78 | |
| 79 | # Derive categories from the folder name |
| 80 | USE_FOLDER_AS_CATEGORY = False |
| 81 | |
| 82 | # Show shortcuts to categories |
| 83 | DISPLAY_CATEGORIES_ON_MENU = True |
| 84 | |
| 85 | # Show shortcuts to static pages (i.e. non articles) |
| 86 | DISPLAY_PAGES_ON_MENU = False |
| 87 | |
| 88 | # Use cached html |
| 89 | LOAD_CONTENT_CACHE = False |
| 90 | |
| 91 | # List of menu items |
| 92 | MENUITEMS = [ |
| 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 |
| 103 | MARKDOWN = { |
| 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. |
| 119 | ARTICLE_URL = 'blog/{slug}.html' |
| 120 | |
| 121 | # The place where we will save an article. |
| 122 | ARTICLE_SAVE_AS = 'blog/{slug}.html' |
| 123 | |
| 124 | # The URL to refer to an article which doesn’t use the default language. |
| 125 | ARTICLE_LANG_URL = 'blog/{slug}-{lang}.html' |
| 126 | |
| 127 | # The place where we will save an article which doesn’t use the default |
| 128 | # language. |
| 129 | ARTICLE_LANG_SAVE_AS = 'blog/{slug}-{lang}.html' |
| 130 | |
| 131 | # The URL to refer to an article draft. |
| 132 | DRAFT_URL = 'draft/blog/{slug}.html' |
| 133 | |
| 134 | # The place where we will save an article draft. |
| 135 | DRAFT_SAVE_AS = 'draft/blog/{slug}.html' |
| 136 | |
| 137 | # The URL to refer to an article draft which doesn’t use the default language. |
| 138 | DRAFT_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. |
| 142 | DRAFT_LANG_SAVE_AS = 'draft/blog/{slug}-{lang}.html' |
| 143 | |
| 144 | # The URL we will use to link to a page. |
| 145 | PAGE_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. |
| 149 | PAGE_SAVE_AS = 'page/{slug}.html' |
| 150 | |
| 151 | # The URL we will use to link to a page which doesn’t use the default language. |
| 152 | PAGE_LANG_URL = 'page/{slug}-{lang}.html' |
| 153 | |
| 154 | #The location we will save the page which doesn’t use the default language. |
| 155 | PAGE_LANG_SAVE_AS = 'page/{slug}-{lang}.html' |
| 156 | |
| 157 | # The URL used to link to a page draft. |
| 158 | DRAFT_PAGE_URL = 'draft/page/{slug}.html' |
| 159 | |
| 160 | # The actual location a page draft is saved at. |
| 161 | DRAFT_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. |
| 164 | DRAFT_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. |
| 168 | DRAFT_PAGE_LANG_SAVE_AS = 'draft/page/{slug}-{lang}.html' |
| 169 | |
| 170 | # The URL to use for a category. |
| 171 | CATEGORY_URL = 'category/{slug}.html' |
| 172 | |
| 173 | # The location to save a category. |
| 174 | CATEGORY_SAVE_AS = 'category/{slug}.html' |
| 175 | |
| 176 | # The URL to use for a tag. |
| 177 | TAG_URL = 'tag/{slug}.html' |
| 178 | |
| 179 | # The location to save the tag page. |
| 180 | TAG_SAVE_AS = 'tag/{slug}.html' |
| 181 | |
| 182 | # The URL to use for an author. |
| 183 | AUTHOR_URL = 'author/{slug}.html' |
| 184 | |
| 185 | # The location to save an author. |
| 186 | AUTHOR_SAVE_AS = 'author/{slug}.html' |
| 187 | |
| 188 | # The location to save per-year archives of your posts. |
| 189 | YEAR_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. |
| 193 | YEAR_ARCHIVE_URL = '' |
| 194 | |
| 195 | # The location to save per-month archives of your posts. |
| 196 | MONTH_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. |
| 200 | MONTH_ARCHIVE_URL = '' |
| 201 | |
| 202 | # The location to save per-day archives of your posts. |
| 203 | DAY_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. |
| 207 | DAY_ARCHIVE_URL = '' |
| 208 | |
| 209 | # Gallery plugin |
| 210 | PHOTO_LIBRARY = '/home/luigi/giggi.me.c/multimedia/gallery' |
| 211 | PHOTO_GALLERY = (2000, 1333, 100) |
| 212 | PHOTO_ARTICLE = (2000, 1333, 100) |
| 213 | PHOTO_THUMB = (300, 200, 100) |
| 214 | PHOTO_SQUARE_THUMB = False |