Giter Club home page Giter Club logo

greenearsblog's Introduction

Dan's Blog

This is the repoistory for Dan's blog.

Setup

  1. If gulp is not installed globally yet, run sudo npm install gulp -g
  2. Run npm install

NOTE: You may need to sudo npm install node-sass -g. You may need to sudo npm install docpad -g

Usage

Two processes must be run. The first is docpad, which serves and regenerates the site on file changes. The second is gulp, which will rebuild CSS and JS files when changed.

In two separate terminal tabs / windows, run:

  1. docpad run
  2. gulp

Editing Files

Files to edit are in the src folder. The out folder contains the built, static version of the site which can be uploaded to S3.

Files which handle individual pages (e.g., an about page) are located in src/documents.

Adding new posts

To add a new post, add a new file in src/documents/posts. The post will be automatically rendered. You can use markdown by giving the filename a .html.md extension (e.g., post-title.html.md). Each file in the posts directory is an individual post. All posts files must contain a meta header, denoted by a group wrapped by three hyphens. E.g.,

---

layout: "content"

title: "Post Title"

description: "Some short description"

date: "2014-07-12"

---

greenearsblog's People

Contributors

balupton avatar erikhazzard avatar ginader avatar

Watchers

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