#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

SITENAME = 'Xieme-Art'
SITEURL = 'https://xieme-art.org'
SITESUBTITLE = """
(Yet Another) Blog personnel d'un AdminSys spécialisé Open-Source
Geek curieux et gameur libre.
"""
DEFAULT_PAGINATION = 10
TYPOGRIFY = True

PAGINATION_PATTERNS = (
    (1, '{base_name}/', '{base_name}/index.html'),
    (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)

MENUITEMS = (
    ('Tags', 'tags.html'),
    ('Catégories', 'categories.html'),
)

LINKS = (
    ('Giroll', 'https://giroll.org'),
    ('Aquilenet', "https://aquilenet.fr"),
)

AUTHOR = 'ephase'
BIO = "Je suis Yorick, ephase de mon pseudo. Geek et gameur depuis \
       1979, co-fondateur du collectif Giroll et administrateur système \
       spécialisé dans les technologies open-sources."
PROFILE_IMAGE = "assets/souris.svg"
ABOUT_PAGE = '/page/a-propos/'

# Social widget
SOCIAL = (
    ('git', 'https://git.epha.se/'),
    ('mastodon', 'https://toot.aquilenet.fr/@ephase'),
    ('github', 'https://github.com'),
    ('linkedin', 'https://www.linkedin.com/in/ephase/'),
    ('twitter', 'https://twitter.com/ephase'),
)


PATH = 'content'
ARTICLE_PATHS = ['articles']
ARTICLE_URL = 'post/{slug}/'
ARTICLE_SAVE_AS = 'post/{slug}/index.html'
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
AUTHOR_SAVE_AS = 'author/{slug}/index.html'
AUTHOR_URL = 'author/{slug}/'
STATIC_PATHS = ['assets', 'files']
EXTRA_PATH_METADATA = {'assets/favicon.png':{'path': 'favicon.ico'}}

PAGE_URL = 'page/{slug}/'
PAGE_SAVE_AS = 'page/{slug}/index.html'

TIMEZONE = 'Europe/Paris'
LOCALE = 'fr_FR.UTF-8'
DEFAULT_LANG = 'fr'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = "feeds/all.atom.xml"
TAG_FEED_ATOM = "feeds/tag_{slug}.xml"
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

THEME = 'theme/'
PLUGIN_PATHS = ['plugins']
PLUGINS = ['neighbors']

# Attila theme
HEADER_COVERS_BY_CATEGORY = []
HEADER_COVERS_BY_TAG = []
HEADER_COVER = 'assets/backgrounds/sigean.jpg'
COLOR_SCHEME_CSS = 'monokai.css'
AUTHORS_BIO = {
    "ephase": {
        "name": AUTHOR,
        "image": PROFILE_IMAGE,
        "bio": BIO,
        "cover": "assets/backgrounds/sigean.jpg",
    }
}

JS_OVERRIDE = ['assets/js/matomo.js']
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
