Skip to content

frontend-labs/post-template

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

post-template

Template for post in frontendlabs.io

Clone

git clone https://github.com/frontend-labs/post-template.git

Dependencies

node version >= 4.2.6

Install

sudo npm install -d

Does it work?

Watch

npm run watch

BrowserSync

npm run browser

Ready!

Open pug/_config.pug and update it with your post data

- var post = {}
- post.title           = 'titulo'
- post.date            = '17 enero, 2016'
- post.author          = 'Jan Sanchez'

Then open pug/index.pug and start making your new post!

extends ./pug/_layout.pug
block post
	//- aquí empieza el contenido del post
	h2 titulo de sección
	p contenido de un parrafo
	p texto y un enlace
		a(href="http://frontendlabs.io/") Frontendlabs.io
	p texto que contiene el nombre de una
		span(class="inline_folder") carpeta de un
		span(class="inline_file") archivo y de un
		span(class="inline_code") codigo
	pre(class="prettyprint lang-js")
		code.
			var hola = 'ejemplo de string';

it works

Docker!

In this file: docker/compose/supply.yml change jan for your username (whoami)

Setup

make setup

Watch

make watch

And in another terminal:

Browser

make browser

Enjoy it!