Git Product home page Git Product logo

bloghelper's Introduction

bloghelper

helper scripts for my blog on github pages, written in node.js.

git clone then run npm i to install packages (needs npm and node installed).

##commands Run node dante --help for a list of commands (created with commander npm module).

This is just a personal project and is intended for my own use mainly. In the "templates" folder are .liquid templates that contain the nav bar and new blog html for my site. The main annoyance I faced was pasting my new nav links into each existing html file when I made a new blog, so I've created functionality that does this (and creates the blog itself) with a command node dante nb. Basically all the script does is file manipulation using fs and a few other libraries.

Helper functions are in utils and the entry point is dante.js (this uses babel-register so I don't have to write in vanilla javascript).

I use this by putting the directory inside my github page directory (danielkermode.github.io). This is needed because the script automatically uses the parent directory to search through for all the commands. It also assumes a directory named 'blog' in the parent directory. Basically, it's fairly strict on directories. This is so I don't have to specify them when I run the commands (I could move this to a config file in the future).

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.