Coder Social home page Coder Social logo

lacroixdesign.net's Introduction

Workflow

Development server

bin/middleman

Deploy

bin/rake deploy

Frontmatter Options

Header

Use the cover header for pages that have a cover image:

cover_header: true

An above header is just like a cover header, but ditches the subtle gradient:

above_header: true

Set a background color for the header. Not recommended to combine with cover header or above header since it will cover up content:

header_background: "#fafaf7"

Use the light version of the logo. Useful when using a darker background color:

light_logo: true

Blog Helpers

Videos

Use the vimeo or youtube helpers to embed videos. Each helper takes a video ID as the first argument, and an optional caption as the second.

vimeo(id, caption)

youtube(id, caption)

Examples:

<%= vimeo "13336009" %>

<%= youtube "G4-Wo8lWngc", "An optional caption." %>

Images

To include a full-width image which stretches past the edge of the page gutters, use the stretch_image helper.

The helper takes a path to the image, an optional alt tag, and an optional caption:

stretch_image(path, alt, caption)

Example:

<%= stretch_image "blog/blog-title/image-name.jpg", "An Alt for the Image", "A caption with #{link_to 'a link', '/blog'}." %>

Pull Quotes

This helper takes a quote (plain text) and an optional author:

pullquote(text, author)

Examples:

<%= pullquote "Some text to quote" %>

<%= pullquote "Some text to quote", "Barack Obama" %>

Gists / Code

Embed a GitHub Gist by passing the gist helper a Gist ID:

gist(id)

Example:

<%= gist "f3be83a2cabf9e1061fc" %>

Tweets

Embed a tweet by passing the tweet helper a tweet/status ID:

tweet(id)

Example:

<%= tweet "504323875963170817" %>

lacroixdesign.net's People

Contributors

iamlacroix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lacroixdesign.net's Issues

License and usage

Hi guys!

Fantastic work on the Middleman!
Can you please specify the licence your code is published by?

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.