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
-
Add the theme to your site's dependencies and install it like any other Python package.
-
Add the theme to
INSTALLED_APPSin your Django config:INSTALLED_APPS = [ ... "djpress_blog_theme", ]
-
Then configure the
THEMEsetting in theDJPRESS_SETTINGSdictionary 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!',
},
},
}
Release files for djpress-blog-theme 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djpress_blog_theme-0.4.0.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djpress_blog_theme-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / djpress_blog_theme-0.4.0.tar.gz
| Download URL | djpress_blog_theme-0.4.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbe5a019e592202e68e239f8a65ca80cfd4f87c6102545e98d62a38fca58808c
|
|
BLAKE2b-256 checksum How to use checksums |
b3c31b2233722db558d1df7c603533776cd735ab6480241ed6fdccc97a71a45d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure
|
Release files / djpress_blog_theme-0.4.0-py3-none-any.whl
| Download URL | djpress_blog_theme-0.4.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5111d826368b9efe776c00ec9adb6e502b119b889133427592bd9928a8ad0eed
|
|
BLAKE2b-256 checksum How to use checksums |
4f5bf3d688375b1605ffba936f3c372d6e0911cf0430b71161af08d491395056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure
|