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 yaml 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.3.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.3.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjan26-repeat-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 d63e77f901622c9f748ff0fe03213230edeaafaa82a407cff7bf441876711aec
MD5 a6e55ba4720d1da41957dff893c5a832
BLAKE2b-256 04f79f2f12e08b869a8a2a4f44050f76a6fe7889e174f197c3154995218c6a03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjan26_repeat-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f7b036978ad27b3b815328034b4f0edf596fa081491d9e82cf7c77fad8440d1
MD5 d5d66a0b580e16b0aa7f27c283934639
BLAKE2b-256 8b05d5436af024dc65c8f96fccf91e1ea4b01f93d551ee23e732e80772cf4e50

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