Giter Site home page Giter Site logo

jasonbayton / neutron Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.33 MB

A markdown-powered, flat-file static site written in PHP.

Home Page: http://neutron.bayton.org

License: GNU General Public License v3.0

PHP 69.24% CSS 25.14% JavaScript 2.28% Hack 3.34%

neutron's Introduction

Neutron

A static, flat-file site engine using minimal templating and a little bit of PHP

The aim of this project is to:

  1. Improve performance over popular alternatives
  2. Reduce server and backup overhead
  3. Wave goodbye to any reliance on a database
  4. Improve my own skills

How it works

Create a new markdown file and upload it to the content folder, the easiest method is to cp template/home.md /content/chosen/location.md and edit with your favourite text editor.

From there, assign the following variables:

  • content type
  • author
  • date
  • tags (optional)
  • category
  • featured image (optional/theme dependent)

The contenttype variable is explicitly linked to the themes directory, in which the content type must match the file name of a content type without the extension (ie for "wide", a template file named wide.php must exist in the theme directory.

There are two themes out of the box, one is a clone of bayton.org named bayton and the other is a readthedocs.org inspired theme for a documentation-focused site named docs and is enabled by default. The theme can be changed in the config/config.php file.

Requires

PHP mbstring
PHP Composer
mnapoli/frontyaml (see composer.json in root)

Contributions

This is my first ever PHP project and there will therefore be issues, poor code quality and other less-than-ideal things to be found in the source. I welcome contributions that will rectify any of the above or any other improvements.

neutron's People

Contributors

jasonbayton avatar dependabot[bot] avatar

Watchers

 avatar

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.