Socket
Socket
Sign inDemoInstall

153957-theme

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    153957-theme

Theme for sigal generated photo albums


Maintainers
1

Readme

Theme 153957

PyPI License Build

View demo album here

Web photo gallery templates adapted to my personal preferences.

Usage

This section describes how to install and use this theme.

Installation

Install the 153597-theme package:

$ pip install 153957-theme

Configure

In sigal.conf.py configuration for an album the theme setting should be a path to a theme directory. However, since this theme is provided as a Python package its location might be harder to get. Two options are available for configuration:

The theme can be configured as a plugin or you can get the path by importing the package. By setting is as plugin the theme is automatically set.

Set theme to an empty string and add the theme and menu plugins:

theme = ''
plugins = ['theme_153957.theme', 'theme_153957.full_menu', …]

The alternative:

from theme_153957 import theme
theme = theme.get_path()
plugins = ['theme_153957.full_menu', …]

Wrapping album

Use the settings head, body_prefix, and body_suffix to add additional code to the templates. The value of head is appended to the head element, the body settings are placed just after the body opening tag (prefix) and just before the closing body tag (suffix). This allows embedding the album in your own website.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc