Giter Site home page Giter Site logo

slog's Introduction

Slim Powered Blog Engine

A proof-of-concept experiment whether via slim one can handily and seamlessly build a blog to host at GitHub.

Development

Prerequisites

It is assumed that you already have Ruby 2.4.0 installed. If not, then you can follow a couple of simple steps from here (applicable only for OS X and Linux).

Also, it is assumed that you already have Node.js installed.

Preparation

  1. git clone https://github.com/denpatin/slog.git && cd slog
  • bundle install
  • Gulp & Co.
npm install gulp-cli -g
npm install gulp -D
npm install --save-dev del
npm install --save-dev gulp-if
npm install --save-dev gulp-rename
npm install --save-dev gulp-concat
npm install --save-dev gulp-uglify
npm install --save-dev gulp-concat-css
npm install --save-dev gulp-minify-css

Building the Blog

For now, just execute the ruby build.rb > index.html command. Then you find the main page file as index.html.

Working with Assets

Run the gulp dev command (or gulp prod for cleaning unused css) to recompile the assets. You can find the build-ready versions in the assets/build directory.

Creating New Post

ruby new.rb is responsible for creating new posts. You must pass an argument to the script; the argument is the title of the new post.

For example, ruby new.rb My new entry creates a file 201703181754-my_new_entry.slim in the posts/ directory, providing that the current time is 17:54 of 18th March, 2017.

slog's People

Contributors

denpatin avatar

Watchers

 avatar  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.