Source Code

/ src / core / settings.py

import os
from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent

SECRET_KEY = '🤪'
DEBUG = True

ALLOWED_HOSTS = []

INSTALLED_APPS = [
    'django.contrib.staticfiles',
    'django_distill',
    'blog',
    'repository',
]

ROOT_URLCONF = 'core.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.request',
                 'blog.context.listed_columns',
                 'blog.context.data',
            ],
        },
    },
]

MIDDLEWARE = [
    "django.middleware.common.CommonMiddleware",
]


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR.parent / 'db.sqlite3',
    }
}




STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

CONTENT_DIR = BASE_DIR.parent / "content"

STATICFILES_DIRS = [
    CONTENT_DIR / "static",
]

STATIC_URL = "/static/"


DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

CONFIG_FILE = {
    "authors": CONTENT_DIR / "authors.yaml",
    "columns": CONTENT_DIR / "columns.yaml"
}

SITE_TITLE = "goeshard.org"
SITE_URL = "https://goeshard.org"
SITE_DESCRIP = "an everything/nothing site with a pantheon of authors"


CSS_INPUT_DIR = BASE_DIR / "style"
CSS_OUTPUT_DIR = BASE_DIR.parent / "content" / "static" / "css"

CSS_THEMES = {
    "wireframe-only":                ("wireframe.css", None),
    "board.goeshard.org":            ("wireframe.css", "board.css"),
    "dark-purple-green":             ("wireframe.css", "theme2.css"),
    "dark-hot-pink":                 ("wireframe.css", "theme3.css"),
    "dark-clean-default":            ("wireframe.css", "theme4.css"),
    "teenage-girl":                  ("wireframe.css", "theme5.css"),
    "most-edgelord-kid-on-4chan":    ("wireframe.css", "theme6.css"),
}

CSS_DEFAULT = "dark-clean-default"