Skip to main content

A simple but modern blog theme for DJ Press.

Project description

Blog Theme

This is a simple, but modern, blog theme for DJ Press.

Requirements

This can only be used on sites running DJ Press v0.23 or newer.

Installation

  1. Add the theme to your site's dependencies and install it like any other Python package.

  2. Add the theme to INSTALLED_APPS in your Django config:

    INSTALLED_APPS = [
        ...
        "djpress_blog_theme",
    ]
    
  3. Then configure the THEME setting in the DJPRESS_SETTINGS dictionary in your Django config with the theme name:

    DJPRESS_SETTINGS = {
        "THEME": "djpress_blog_theme",
    }
    

Configuration

The following optional settings are supported:

  • sidebar_position: By default, the sidebar will be on the left-hand side. You can optionally set this to "right" to move the sidebar to the right.
  • avatar_url: Configure this to a URL of your avatar picture, and it will show in the sidebar as a 120x120 pixel round image.
  • mastodon_profile: If you have a Mastodon profile, set this to the URL to your profile and it will show in the sidebar.
  • github_username: If you have a GitHub profile, set this to the username of your profile and it will show in the sidebar.
  • linkedin_username: If you have a LinkedIn profile, set this to the username to your profile and it will show in the sidebar.
  • x_username: If you have an X profile, set this to the username to your profile and it will show in the sidebar.
  • copyright_message: You can override the copyright message in the sidebar which is set to the following by default: "© {% now "Y" %} All rights reserved.". Note that the text you configure here is marked as safe in the template, so you can use HTML tags.
  • bg-sidebar: The color of the sidebar in light mode.
  • dark-bg-sidebar: The color of the sidebar in dark mode.

Configure these settings in the THEME_SETTINGS dictionary object in your DJ Press config. For example:

DJPRESS_SETTINGS = {
    "THEME": "djpress_blog_theme",
    "THEME_SETTINGS": {
        "djpress_blog_theme": {
            "sidebar_position": "right",
            "avatar_url": "/static/img/avatar.jpg",
            "copyright_message": 'Content is <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a> – share away!',
        },
    },
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djpress_blog_theme-0.4.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djpress_blog_theme-0.4.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file djpress_blog_theme-0.4.0.tar.gz.

File metadata

  • Download URL: djpress_blog_theme-0.4.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for djpress_blog_theme-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fbe5a019e592202e68e239f8a65ca80cfd4f87c6102545e98d62a38fca58808c
MD5 c82745162e75939f40bcfc3a4740329d
BLAKE2b-256 b3c31b2233722db558d1df7c603533776cd735ab6480241ed6fdccc97a71a45d

See more details on using hashes here.

File details

Details for the file djpress_blog_theme-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: djpress_blog_theme-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for djpress_blog_theme-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5111d826368b9efe776c00ec9adb6e502b119b889133427592bd9928a8ad0eed
MD5 096eaa8e26d991ae1d94625614264ccd
BLAKE2b-256 4f5bf3d688375b1605ffba936f3c372d6e0911cf0430b71161af08d491395056

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page