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.3.0.tar.gz (11.8 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.3.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djpress_blog_theme-0.3.0.tar.gz
  • Upload date:
  • Size: 11.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 9374e7924d3482c8ab1021f74442d2d20cf3c548c431fb4182b436a24f7151be
MD5 52dcfc42a477c8705af6db5e8b3207c9
BLAKE2b-256 5d52f944ff4d6bbe095da95f10a5a2c4c9125ae75a966c11a74e9bf0852f685d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djpress_blog_theme-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6403cf715c0acacd9f21e7fd8c309a15b92e77aaac59adf22209a921bd42061e
MD5 4742db6a9675c6633f53379b83374a12
BLAKE2b-256 7cf1d81a79db6818302c22a00988e4a61a3b02800202b79e23c7a9800c4f1b16

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