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.4.0.tar.gz (2.6 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.4.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjan26-repeat-0.4.0.tar.gz
  • Upload date:
  • Size: 2.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 71d43a2f4eb8661f5f5f368c8513c6b6f34391b776f5b07dba4d5829ebd724f9
MD5 aa602f5f672d5d8af0408e522c4ed85d
BLAKE2b-256 e5bdf62e150d41dbefc6bbb39c03d24db0bd85cdb820529551d30bbd489291f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjan26_repeat-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e23ba7a937c3c6854bcea0723805fadd099e640e18b4fd40d3166dba0d93c5f3
MD5 fdad16e924834643658b377009d9d2ed
BLAKE2b-256 18aabec9c474559bb6575d946a80eba5f039dbae7c67bde8c259eb52d45cca0c

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