Skip to main content

A theme that leaves theming to the browser

Project description

Pelican Themeless

A theme that leaves theming to the browser

Usage

Write metadata in the form [//Pelican/KEY]: # (VALUE). They can be placed anywhere in the document. If the first text content is a top-level heading, the heading is removed from the document, and used as the title. For example,

# Hello, world!

[//Pelican/date]: # (2000-10-31 00:00)
[//Pelican/author]: # (Noname)

Goodbye, world!

The equivalent MultiMarkdown document used by Pelican would be

title: Hello, world!
date: 2000-10-31 00:00
author: Noname

Goodbye, world!

If a key has multiple sources (references, MultiMarkdown, heading), the order of stored value is unspecified.

Installation

If PLUGINS is not specified inside pelicanconf.py, then installing this package should be sufficient setup.

python -m pip install pelican-markdown-unrendered-metadata

Otherwise, inside pelicanconf.py, add markdown_unrendered_metadata to the PLUGINS list variable.

Raison d'être

Pelican metadata of Markdown documents are colon-separated key-value pairs at the beginning of the document. Markdown parsers see them as a block of text and generate an unintended paragraph when rendered.

To mitigate this, the metadata can be embedded inside a form of Markdown comments. This plugin uses link references as comments, suggested by a StackOverflow answer:

[//]: # (This may be the most platform independent comment)

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

pelican-themeless-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

pelican_themeless-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pelican-themeless-0.1.0.tar.gz.

File metadata

  • Download URL: pelican-themeless-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pelican-themeless-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ca3e82867631dcc8d3460316eb088e2a51cdec2170b61ab7dcb97c032f70ccf
MD5 b4fb464b8a61367aaec6b7452cfce9a9
BLAKE2b-256 e2df00f700f7c2909e5773ab189e0dee696a8fbdf38b79ac51182518281facd0

See more details on using hashes here.

File details

Details for the file pelican_themeless-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pelican_themeless-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pelican_themeless-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98b773a2926d478fb255827f96dc029ebc6bca3fd2ba4291c0e81dd7649d9549
MD5 ce56f66249025a75d13895ee6450fc1c
BLAKE2b-256 3ffd25aae58fc6b60a2046837cd94853ed1cf7b0a915dc1a266c225012b50b4c

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