cadars / portable-php

A blog in one HTML file

Home Page:https://portable.fyi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get a single HTML document from a collection of Markdown files.
Demo: https://cadars.github.io/portable-php/

Requirements: PHP

  1. Write posts in content/
  2. Open http://example.com/portable.php in your browser
  3. Save as index.html

Or from the command-line:

php portable.php > index.html

Extra: generate a basic RSS feed with portable-feed.php.

Included dependencies
  • Parsedown converts Markdown to HTML.
  • ParsedownExtra adds support for footnotes, abbreviations, definition lists, tables, class and id attributes, fenced code blocks, and Markdown inside HTML blocks.
  • ParsedownExtraPlugin adds loading="lazy" to images, figure and figcaption elements, and more. Can be used for syntax highlighting.

About

A blog in one HTML file

https://portable.fyi

License:MIT License


Languages

Language:HTML 77.5%Language:CSS 13.6%Language:PHP 8.9%