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.2.0.tar.gz (10.5 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.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djpress_blog_theme-0.2.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.7 CPython/3.14.3 Linux/6.17.0-1008-azure

File hashes

Hashes for djpress_blog_theme-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e0251279c68933fc9934f3536168226f2954ea7b65d4d294388a036e37bb293d
MD5 f9009573d1952c3d5f8ac2480588d701
BLAKE2b-256 eeb55563072e6dca24af84f5532cc109724fbb40a4125dd3ddfad36299604658

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djpress_blog_theme-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.7 CPython/3.14.3 Linux/6.17.0-1008-azure

File hashes

Hashes for djpress_blog_theme-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 402b1cfcb8e44978df9bbf37422c456d18a4afd74ff99d7b10a67d929b987f72
MD5 2299b3037a671464f0629ad3dccef9c4
BLAKE2b-256 1b3f2e780e78e997bf54ad6e3348e4f616912a2e24bfa2b8d5733c374b546ef0

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