Skip to content

Commit 2aaca38

Browse files
committed
Merge branch 'release/v1.1.0'
2 parents 2765f2d + 3086e9d commit 2aaca38

37 files changed

+5432
-1791
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ General notes and suggestions for customizing Minimal Mistakes.
2828
minimal-mistakes/
2929
├── _includes
3030
| ├── author-bio.html //bio stuff goes here
31-
| ├── chrome-frame.html //displays on IE8 and less
31+
| ├── browser-upgrade.html //displays on IE8 and less
3232
| ├── footer.html //site footer
3333
| ├── head.html //site head
3434
| ├── navigation.html //site top nav
@@ -112,6 +112,15 @@ image:
112112

113113
The large texture images used in *Minimal Mistakes* are from [Love Textures](http://lovetextures.com), probably a good idea to swap these out with your own photos...
114114

115+
If you want to apply attribution to a feature image use the following YAML front matter on posts or pages. Image credits appear directly below the feature image with a link back to the original source.
116+
117+
``` yaml
118+
image:
119+
feature: feature-image-filename.jpg
120+
credit: Michael Rose #name of the person or site you want to credit
121+
creditlink: http://mademistakes.com #url to their site or licensing
122+
```
123+
115124
#### Categories
116125

117126
In the sample `_posts` folder you may have noticed `category: articles` in the front matter. I like keeping all posts grouped in the same folder. If you decide to rename or add categories you will need to modify the permalink in `articles.md` along with the filename (if renaming).

_includes/author-bio.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo" width="100" height="100"></a>
2-
<h4>{{ site.owner.name }}</h4>
1+
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo"></a>
2+
<h3>{{ site.owner.name }}</h3>
33
<p>{{ site.owner.bio }}</p>
4-
{% if site.owner.twitter %}<p style="text-indent:0;margin-top:1.5em;"><a href="http://twitter.com/{{ site.owner.twitter }}" target="_blank"><i class="icon-twitter"></i> Twitter</a></p>{% endif %}
5-
{% if site.owner.facebook %}<p style="text-indent:0;"><a href="http://facebook.com/{{ site.owner.facebook }}" target="_blank"><i class="icon-facebook"></i> Facebook</a></p>{% endif %}
6-
{% if site.owner.google_plus %}<p style="text-indent:0;"><a href="{{ site.owner.google_plus }}" target="_blank"><i class="icon-google-plus"></i> Google+</a></p>{% endif %}
7-
{% if site.owner.linkedin %}<p style="text-indent:0;"><a href="http://linkedin.com/in/{{ site.owner.linkedin }}" target="_blank"><i class="icon-linkedin"></i> LinkedIn</a></p>{% endif %}
8-
{% if site.owner.instagram %}<p style="text-indent:0;"><a href="http://instagram.com/{{ site.owner.instagram }}" target="_blank"><i class="icon-instagram"></i> Instagram</a></p>{% endif %}
9-
{% if site.owner.github %}<p style="text-indent:0;"><a href="http://github.com/{{ site.owner.github }}" target="_blank"><i class="icon-github"></i> Github</a></p>{% endif %}
10-
{% if site.owner.lastfm %}<p style="text-indent:0;"><a href="http://lastfm.com/{{ site.owner.lastfm }}" target="_blank"><i class="icon-lastfm"></i> Last.fm</a></p>{% endif %}
11-
{% if site.owner.tumblr %}<p style="text-indent:0;"><a href="http://{{ site.owner.tumblr }}.tumblr.com" target="_blank"><i class="icon-tumblr"></i> Tumblr</a></p>{% endif %}
4+
{% if site.owner.twitter %}<a href="http://twitter.com/{{ site.owner.twitter }}" class="author-social" target="_blank"><i class="icon-twitter"></i> Twitter</a>{% endif %}
5+
{% if site.owner.facebook %}<a href="http://facebook.com/{{ site.owner.facebook }}" class="author-social" target="_blank"><i class="icon-facebook"></i> Facebook</a>{% endif %}
6+
{% if site.owner.google_plus %}<a href="{{ site.owner.google_plus }}" class="author-social" target="_blank"><i class="icon-google-plus"></i> Google+</a>{% endif %}
7+
{% if site.owner.linkedin %}<a href="http://linkedin.com/in/{{ site.owner.linkedin }}" class="author-social" target="_blank"><i class="icon-linkedin"></i> LinkedIn</a>{% endif %}
8+
{% if site.owner.instagram %}<a href="http://instagram.com/{{ site.owner.instagram }}" class="author-social" target="_blank"><i class="icon-instagram"></i> Instagram</a>{% endif %}
9+
{% if site.owner.github %}<a href="http://github.com/{{ site.owner.github }}" class="author-social" target="_blank"><i class="icon-github"></i> Github</a>{% endif %}
10+
{% if site.owner.lastfm %}<a href="http://lastfm.com/{{ site.owner.lastfm }}" class="author-social" target="_blank"><i class="icon-lastfm"></i> Last.fm</a>{% endif %}
11+
{% if site.owner.tumblr %}<a href="http://{{ site.owner.tumblr }}.tumblr.com" class="author-social" target="_blank"><i class="icon-tumblr"></i> Tumblr</a>{% endif %}

_includes/browser-upgrade.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[if lt IE 9]><div class="browser-upgrade alert alert-info">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</div><![endif]-->

_includes/chrome-frame.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h6>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <a href="http://mademistakes.com/">Minimal Mistakes</a> theme.</h6>
1+
<span>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <a href="http://mademistakes.com/">Minimal Mistakes</a> theme.</span>

_layouts/home.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,21 @@
99

1010
<body class="home" itemscope itemtype="http://schema.org/WebPage">
1111

12-
{% include chrome-frame.html %}
12+
{% include browser-upgrade.html %}
1313

1414
{% include navigation.html %}
1515

16-
<div class="image-wrap">
17-
<div class="headline-wrap">
18-
<h1>{{ page.title }}</h1>
19-
{% if page.tagline %}<h2>{{ page.tagline }}</h2>{% endif %}
20-
</div><!--/ .headline-wrap -->
21-
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
22-
</div><!-- /.image-wrap -->
16+
{% if page.image.feature %}<div class="image-wrap">
17+
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
18+
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
19+
</div><!-- /.image-wrap -->{% endif %}
2320

2421
<div class="article-author-top">
2522
{% include author-bio.html %}
2623
</div>
2724

2825
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
29-
<a href="{{ site.url}}/articles" class="btn btn-small pull-right">View all articles</a>
30-
<h3>Latest Articles</h3>
31-
<hr />
26+
<h3><a href="{{ site.url}}/articles">Articles</a></h3>
3227
{% for post in site.categories.articles limit:5 %}
3328
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
3429
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>

_layouts/page.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@
99

1010
<body class="page" itemscope itemtype="http://schema.org/WebPage">
1111

12-
{% include chrome-frame.html %}
12+
{% include browser-upgrade.html %}
1313

1414
{% include navigation.html %}
1515

1616
{% if page.image.feature %}<div class="image-wrap">
1717
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
18+
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
1819
</div><!-- /.image-wrap -->{% endif %}
1920

2021
<div id="main" role="main" itemprop="mainContentOfPage">
2122
<div class="article-author-top">
2223
{% include author-bio.html %}
2324
</div>
2425
<article itemscope itemtype="http://schema.org/CreativeWork">
25-
<div class="headline-wrap">
26-
<h1 itemprop="headline">{{ page.title }}</h1>
27-
</div><!--/ .headline-wrap -->
26+
<h1 itemprop="name">{{ page.title }}</h1>
2827
<div class="article-wrap" itemprop="text">
2928
{{ content }}
3029
</div><!-- /.article-wrap -->

_layouts/post-index.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,29 @@
99

1010
<body class="articles" itemscope itemtype="http://schema.org/WebPage">
1111

12-
{% include chrome-frame.html %}
12+
{% include browser-upgrade.html %}
1313

1414
{% include navigation.html %}
1515

16-
<div class="image-wrap">
17-
<div class="headline-wrap">
18-
<h1>{{ page.title }}</h1>
19-
{% if page.tagline %}<h2 class="hidden-phone">{{ page.tagline }}</h2>{% endif %}
20-
</div><!--/ .headline-wrap -->
21-
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
22-
</div><!-- /.image-wrap -->
16+
{% if page.image.feature %}<div class="image-wrap">
17+
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
18+
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
19+
</div><!-- /.image-wrap -->{% endif %}
2320

2421
<div class="article-author-top">
2522
{% include author-bio.html %}
2623
</div>
2724

2825
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
26+
<h1 itemprop="name">{{ page.title }}</h1>
2927
{% for post in site.posts %}
3028
{% unless post.next %}
3129
<h3>{{ post.date | date: '%Y' }}</h3>
32-
<hr />
3330
{% else %}
3431
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
3532
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
3633
{% if year != nyear %}
3734
<h3>{{ post.date | date: '%Y' }}</h3>
38-
<hr />
3935
{% endif %}
4036
{% endunless %}
4137
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">

_layouts/post.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
<body class="article" itemscope itemtype="http://schema.org/WebPage">
1111

12-
{% include chrome-frame.html %}
12+
{% include browser-upgrade.html %}
1313

1414
{% include navigation.html %}
1515

1616
{% if page.image.feature %}<div class="image-wrap">
1717
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
18+
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
1819
</div><!-- /.image-wrap -->{% endif %}
1920

2021
<div id="main" role="main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
@@ -23,7 +24,7 @@
2324
</div>
2425
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
2526
<div class="headline-wrap">
26-
<h1 itemprop="headline">{{ page.title }}</h1>
27+
<h1 itemprop="name">{{ page.title }}</h1>
2728
<h2>{{ page.tagline }}</h2>
2829
</div><!--/ .headline-wrap -->
2930
<div class="article-wrap" itemprop="text">
@@ -40,7 +41,7 @@ <h2>{{ page.tagline }}</h2>
4041
</div><!-- /#main -->
4142

4243
<div class="footer-wrap">
43-
{% if site.related_posts.size %}<div class="related-articles">
44+
{% if site.related_posts.size > 0 %}<div class="related-articles">
4445
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/articles">View all articles</a>)</small></h4>
4546
<ul>
4647
{% for post in site.related_posts limit:3 %}

_posts/2011-03-10-sample-post.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ category: articles
77
tags: [intro, beginner, jekyll, tutorial]
88
image:
99
feature: texture-feature-05.jpg
10+
credit: Texture Lovers
11+
creditlink: http://texturelovers.com
1012
---
1113

1214
<section id="table-of-contents" class="toc">
@@ -40,7 +42,7 @@ Below is just about everything you'll need to style in the theme. Check the sour
4042
Lorem ipsum dolor sit amet, test link adipiscing elit. **This is strong**. Nullam dignissim convallis est. Quisque aliquam.
4143

4244
![Smithsonian Image]({{ site.url }}/images/3953273590_704e3899d5_m.jpg)
43-
{: .pull-right}
45+
{: .image-pull-right}
4446

4547
*This is emphasized*. Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. The New York Times (That’s a citation). Underline.Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.
4648

@@ -93,10 +95,4 @@ HTML and CSS are our tools. Mauris a ante. Suspendisse quam sem, consequat at, c
9395

9496
Make any link standout more when applying the `.btn` class.
9597

96-
<div markdown="0"><a href="#" class="btn">This is a button</a></div>
97-
98-
<div markdown="0"><a href="#" class="btn btn-inverse">This is an inverse button</a></div>
99-
100-
<div markdown="0"><a href="#" class="btn btn-small">This is small button</a></div>
101-
102-
<div markdown="0"><a href="#" class="btn btn-inverse btn-small">Small inverse button</a></div>
98+
<div markdown="0"><a href="#" class="btn">This is a button</a></div>

0 commit comments

Comments
 (0)