All Projects → cblgh → plain

cblgh / plain

Licence: other
network .md into .html with plaintext files

Programming Languages

go
31211 projects - #10 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to plain

hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (-15.71%)
Mutual labels:  static-site-generator, plaintext
kerouac
Poetic static site generator for Node.js.
Stars: ✭ 80 (+14.29%)
Mutual labels:  static-site-generator, ssg
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+264.29%)
Mutual labels:  static-site-generator, ssg
eleventy-plugin-cloudinary
An Eleventy shortcode that allows you to add an image from your cloudinary account
Stars: ✭ 28 (-60%)
Mutual labels:  static-site-generator, ssg
graphql-ssg
GraphQL data based Static Site Generator.
Stars: ✭ 30 (-57.14%)
Mutual labels:  static-site-generator, ssg
wordpress-scaffold
The scaffold for GRRR's WordPress Pro setup.
Stars: ✭ 16 (-77.14%)
Mutual labels:  static-site-generator, ssg
gisture
A minimal and flexible blog generator based on GitHub Gist.
Stars: ✭ 24 (-65.71%)
Mutual labels:  static-site-generator, ssg
contentz
Create Content, Get a Highly Optimized Website
Stars: ✭ 57 (-18.57%)
Mutual labels:  static-site-generator, ssg
prpl
A modular static site generator built for longevity
Stars: ✭ 44 (-37.14%)
Mutual labels:  static-site-generator, ssg
frontman
💎 A Ruby-based static website generator
Stars: ✭ 103 (+47.14%)
Mutual labels:  static-site-generator, ssg
presta
Minimalist serverless framework for SSR, SSG, serverless APIs and more.
Stars: ✭ 89 (+27.14%)
Mutual labels:  static-site-generator, ssg
Stencil
A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Stars: ✭ 9,880 (+14014.29%)
Mutual labels:  static-site-generator, ssg
Next.js
The React Framework
Stars: ✭ 78,384 (+111877.14%)
Mutual labels:  static-site-generator, ssg
Nice
A static site generator that is not mean.
Stars: ✭ 23 (-67.14%)
Mutual labels:  ssg
tinyjam
A radically simple, zero-configuration static site generator in JavaScript
Stars: ✭ 137 (+95.71%)
Mutual labels:  static-site-generator
statyk
⚡Dead statyk site generator
Stars: ✭ 26 (-62.86%)
Mutual labels:  ssg
starter
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
Stars: ✭ 198 (+182.86%)
Mutual labels:  ssg
telegram-backup-to-txt
Tool to dump telegram into text files for quick search (e.g. with grep)
Stars: ✭ 22 (-68.57%)
Mutual labels:  plaintext
xidoc
A consistent markup language
Stars: ✭ 40 (-42.86%)
Mutual labels:  ssg
corejam
A scaffolding for building progressive GraphQL powered jamstack applications.
Stars: ✭ 24 (-65.71%)
Mutual labels:  ssg

plain

network markdown files into html with plaintext files

plain in use over at https://cblgh.org

plain is a static-site generator operating on plaintext files containing a small set of commands and markdown input.

plain revolves around converting individual markdown files into a network of html pages, focusing on frictionless use.

Aside from markdown manipulation, plain enables you to copy entire directories into your webroot while also connecting the copied directory to your other pages. You can author conceptual articles in markdown, while being free to mix in the occasional bespoke page, when the mood/humor/fever strikes.

Usage

plain

plain -h
  -css string
        css stylesheet to copy into webdir (default "./style.css")
  -out string
        output path containing the assembled html (default "./web")
  -url string
        the canonical url of the hosted site; used primarily to generate rss feeds
  -v    toggle messages when running

Features

  • Generate rss for any number of listicles
  • Convert markdown into html
  • Copy directories into the webroot
  • Bundles all files needed into a single executable
  • Mod it: customize the command names by editing the symbols file
  • Separate your files from your publishing; plain eschews front matter

Concepts

  • The index file (think of it like a sitemap of sorts, or as a root listicle)
  • Listicles (lists of articles, defined by commands and operands)
  • Commands: symbols + operand (single, not plural)
  • Navigation
  • Directory copying
  • Markdown first

For an example of how to construct a plain website, see the /example folder—or cblgh.org, for the deployed equivalent.

Commands

tt  TITLE            title
bb  BRIEF            a one-line brief markdown description
md  PATH_MD          path to markdown file containing a standalone article / page
ln  LINK             link to resource representing the described item
ww  PATH_WWWROOT     set the final destination path in plain's webroot
cf  PATH_SSG         path to a listicle file containing ssg input (e.g. articles)
cp  COPY_DIR         copy an entire directory to the web root, preserving the folder name
nn  NAVIGATION_TITLE name navigation item & add to the main nav
mv  REDIRECT         redirect the given url (by dumping a redirect page) to the current item
cc  CREATE_RSS       create rss feed for listicle
//  SKIP             comment, skip parsing this line

Make plain your own by changing the command names (e.g. renaming cc -> rss) by editing the symbols file. The only restriction is that the new command name may contain no spaces.

Currently some commands are only suitable for the index file, and some only for listicles.

listicle only
    none! :)
index only
    cf  PATH_SSG         path to a listicle file containing ssg input (e.g. articles) 
    cc  CREATE_RSS       create rss feed for listicle 
    nn  NAVIGATION_TITLE name navigation item & add to the main nav
both listicle & index
    tt  TITLE            title
    bb  BRIEF            a one-line brief markdown description
    md  PATH_MD          path to markdown file containing a standalone article / page
    ln  LINK             link to resource representing the described item
    ww  PATH_WWWROOT     set the final destination path in plain's webroot
    //  SKIP             comment, skip parsing this line
    cp  COPY_DIR         copy an entire directory to the web root, preserving the folder name 
    mv  REDIRECT         redirect the given url (by dumping a redirect page) to the current item

Why

// original impetus
// * server crashed -> lost web dir folder with manual-ish copied over html files / pandoc'd wiki articles
// * wanted something to republish markdown articles from my wiki to static html files, and update an index over them
// * was tired of my old website, mostly due to the markup. but honestly also the design
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].