Giter VIP home page Giter VIP logo

page's Introduction

Page, a static website generator

website = compile(markdown content, templates)

  • creates a well organized website with clear navigation reflecting the folder structure of source text documents
  • fast, well compressed, mobile friendly pages
  • feed and sitemap files for your subscribers and search engines
  • import from any CMS DB (inc. Wordpress), import HTML sites

Writers love distraction free conventional plain text formatting. Template designers love the easy to read, beautiful and powerful template language.

Installation and run

Page is a small command line program written in Python programming language. It requires python installed, which lets user install Page on any platform in a single command.

pip install page

By default, Page will collect all text files in current folder and create a HTML website in a static folder using default templates. Run the program

page

it will look for a config file ./page.yml with custom options.

source: /markdown/source/folder/
target: /target/folder/
tpl: /custom/template/folder/
ext: ''  # or '.htm'
ctx:
    site_name: 'My Site'
    site_url: https://example.org

Batteries included

Minimal default template.

Page has lots of tests including one importing an existing HTML site, converting it to source markdown files and then back into a static HTML site in full circle. This code can inspire users to convert existing static site or one powered by a slow Content Management System to simple markdown powered static site and maintain it with Page.

Programmers using Djagno Web Framework can make their sites faster and less demanding using static cache generation helpers provided, see static.py.

E-commerce features for static shops (cart, checkout, persistence) implemented as a shop template

Example websites using page with sources

Note: public repositories for projects using page begin with word "revisions" to prevent them from being indexed in public search engines as per github.com/robots.txt


Designed in Slovakia by Francis Malina.

page's People

Contributors

fmalina avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

milan-chicago

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.