Skip to content

Commit

Permalink
Update middleman
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Mar 11, 2015
1 parent 07a5f41 commit 4646851
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
47 changes: 38 additions & 9 deletions jekyll.md
Expand Up @@ -49,18 +49,13 @@ jekyll_escape: true
categories: ['html', 'css']
tags: ['html', 'css']

Configuration
-------------
## [Configuration](http://jekyllrb.com/docs/configuration/)

source: .
destination: _site
exclude: [dir, file, ...]
include: ['.htaccess']

### Reference

* [Configuration](http://jekyllrb.com/docs/configuration/)

## [Variables](http://jekyllrb.com/docs/variables/)

{{ site }} - from config.yml
Expand Down Expand Up @@ -157,12 +152,11 @@ Markup

{% include header.html %}

Blogging
--------
## [Blogging](http://jekyllrb.com/docs/posts/)

_posts/YEAR-MONTH-DAY-title.md

### Image paths
### [Image paths](http://jekyllrb.com/docs/posts/#including-images-and-resources)

![My helpful screenshot]({{ site.url }}/assets/screenshot.jpg)

Expand All @@ -171,6 +165,21 @@ Blogging
vi _drafts/a-draft-post.md
jekyll build --drafts

### [Excerpts](http://jekyllrb.com/docs/posts/#post-excerpts)

{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{{ post.excerpt | strip_html }}

### Excerpt separator

---
excerpt_separator: <!--more-->
---

Excerpt
<!--more-->
Out-of-excerpt

### [Permalinks](http://jekyllrb.com/docs/permalinks/)

# _config.yml
Expand All @@ -185,6 +194,26 @@ Blogging

{% for member in site.data.members %}

## [Collections](http://jekyllrb.com/docs/collections/)

```yaml
# _config.yml
collections:
- authors
```

```yaml
# _/authors/a-n-roquelaire.md
---
name: A. N. Roquelaire
real_name: Anne Rice
---
```

```
{% for author in site.authors %}
```

Helpers and Filters
-------------------

Expand Down
4 changes: 3 additions & 1 deletion middleman.md
@@ -1,8 +1,10 @@
---
title: Middleman
title: Middleman 3
layout: default
---

**NB:** This is for Middleman 3, not Middleman 4+.

### Compass config

compass_config do |config|
Expand Down

0 comments on commit 4646851

Please sign in to comment.