Skip to content

codeeverywhereca/lightpresscms

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LightPress CMS (v1.0)

A lightweight blog engine, written in AngularJS, PHP and SQLite.

Why use it?

  • Write posts in Markdown
  • Category support with tags
  • Small code base
  • Easy to customize
  • Built-in code block functionality

Overview

graph

Install

To install, create a new file, call it install.php. Add in the following code and run:

<?php
  mkdir('uploads');
  require('lightpress.class.php');
  $lp = new lightpress();
  $lp->build();
?>

Once done, delete the install.php file, navigate to /editor.php and use password admin1. The password can be changed in lightpress.class.php line 16.

Usage

To add heading use #heading

To add bold text use **some text**

To add images use [image:uploads/image-link.jpg] (built-in image uploader)

To add tags use [tags:aaa, bbb, ccc]

To add a code block use ```( php | sql | js-inc | css-inc | html | js | css | terminal ) ... ```

Special note, 'js-inc' and 'css-inc' will include the code on your page.

To add a quote use ```quote ... ```

To add a table use ```table ... ```

To add a list use ```list ... ```

To add a skip block use ```skip ... ```

Code Block Table Example

```table
a|b|c
d|e|f
...

Screenshots (Example Website)

Editor editor

Archive archive

Post post

About

A lightweight SQLite based blog platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published