Giter Site home page Giter Site logo

trade74 / singularity-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from csu/singularity-cms

0.0 2.0 0.0 84 KB

Singularity is a simple, flat file, markdown CMS in a single PHP file.

Home Page: http://christophersu.org/2012/singularity-cms-single-php-file/

License: MIT License

singularity-cms's Introduction

Singularity

Singularity is a simple, flat file CMS which marks up HTML using Markdown. It's short and concise, taking nothing but less than 40 lines of PHP code and an htaccess file.

Customization

The content directory, file type, and Bootstrap theme can be easily customized by simply editing the PHP variables provided:

define('CONTENT_DIR', ROOT_DIR .'content/'); //change this to change which folder you want your content to be stored in
$bootswatch_theme = "cerulean"; //choose any bootstrap theme included in strapdown.js!
$file_format = ".txt"; //change this to choose a file type, be sure to include the period

URLs

A file at content/index.html can be accessed at /.
A file at content/text.txt can be accessed at /text.
A file at content/sub/index.txt can be accessed at index.txt.
A file at content/sub/text.txt can be accessed at /sub/text.
If a file does not exist or cannot be found, content/404.txt will be used in its place. The content directory and other aspects of how Singularity handles URLs can be easily edited.
The script can also handle different filetypes (just modify one line of PHP).

Markdown

Singularity uses strapdown.js to mark up HTML. Strapdown.js also works with various Bootstrap themes. You can easily add your own HTML and CSS styles, headers, and footers. It's as easy as editing a flat HTML file.

Credits

Copyright (c) 2012 Christopher J. Su
Inspired by Pico and Stacey. Uses strapdown.js, which in turn, uses marked and Bootstrap.

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.