Skip to main content

A pyjan26 plugin to generate repeated pages based on a collection's data

Project description

Repeat Page

A Pyjan26 plugin for generating repeated pages from collection data

Setup

  1. Install the plugin
pip install pyjan26-repeat
  1. Add to your settings.py
PLUGIN_MODULES = [
    'pyjan26-repeat.repeat_page',
     ...
]
  1. Add frontmatter to your Markdown file
layout: base.html
repeat_page: True 
data: all_tags # change this based on your collections data (must be a list)
title: Sample Repeated Page

Output

if your collection all_tags contains:

all_tags = ['python', 'django', 'flask']

The plugin will generate pages with URLs like:

  • /python/
  • /django/
  • /flask/

Each page will be populated w content based on the data (in this case, all_tags)

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

pyjan26-repeat-0.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pyjan26_repeat-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pyjan26-repeat-0.2.0.tar.gz.

File metadata

  • Download URL: pyjan26-repeat-0.2.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.8

File hashes

Hashes for pyjan26-repeat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 225f9752b0578a890ba2c6c2e6f45ccfcc1e17b8a4f0d351de38f8f3c0c035e9
MD5 088ed054ef0460a39aa61d1874c815c8
BLAKE2b-256 53186be2b664e8e8bfcdb7392b90422a78c487ed706c437defec98b78ed9bf4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjan26_repeat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.8

File hashes

Hashes for pyjan26_repeat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 543991afe0e91c1cfb5ac79f861572d4d68b80146d7f0b823517dda1f8997305
MD5 8e7186f11c517387cb5369cb44949ea7
BLAKE2b-256 3794d3f24dff2442ff8f8852c942e98f7308ac8ec279154b30779f9a8c6c5e16

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