2017-25 © Pedro Peláez
 

project markdown-blogger

Create a blog, only run by markdown pages

image

corycollier/markdown-blogger

Create a blog, only run by markdown pages

  • Friday, May 5, 2017
  • by corycollier
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Markdown Blogger

Build Status Latest Stable Version Total Downloads License, (*1)

This project aims to allow users to create blogs by merely uploading markdown files, (*2)

Installation

Installation should be running composer install, (*3)

Usage

Write markdown posts (with the .md suffix) in the data folder. Use underscores to represent slashes in the path_info, (*4)

example index.php file, (*5)

require __DIR__ . '/../vendor/autoload.php';

use MarkdownBlogger\Application;

// bootstrap the blog
$app = Application::getInstance();
$app->bootstrap([
    'data_dir'    => realpath(__DIR__ . '/../data'),
    'blog_title'  => 'The Default Title',
    'keywords'    => 'Testing, Stuff',
    'description' => 'The default description',
]);

// run it
$app->run();

A layout.php file is also required. An example might look like:, (*6)


<!doctype html>
<html>
    <head>
        <title><?php echo $blog_title; ?><?php if ($title) echo ' - ' . $title ; ?></title>
        <meta name="keywords" content="<?php echo $keywords; ?>" />
        <meta name="description" content="<?php echo $description; ?>" />
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    </head>

    <body>
        <h1><?php echo $blog_title; ?></h1>
        <?php
            if ($content) :
                echo $content;
            else :
                foreach ($latest as $blog) :
                    echo $blog->getSnippet();
                endforeach;
            endif;
        ?>

    </body>
</html>
this_is_a-path.md -> this/is/a-path

The Versions

05/05 2017

dev-develop

dev-develop

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2017

dev-master

9999999-dev

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2017

0.2.0

0.2.0.0

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2017

0.1.2

0.1.2.0

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2017

0.1.1

0.1.1.0

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2017

0.1.0

0.1.0.0

Create a blog, only run by markdown pages

  Sources   Download

MIT

The Requires

 

The Development Requires