Skip to content

Commit 6266ebb

Browse files
committed
Merge branch 'develop'
2 parents 39d6c99 + 382e9a3 commit 6266ebb

11 files changed

+58
-5
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ image:
185185
thumb: thumbnail-image.jpg #keep it square 200x200 px is good
186186
```
187187

188+
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.
189+
190+
``` yaml
191+
image:
192+
feature: feature-image-filename.jpg
193+
credit: Michael Rose #name of the person or site you want to credit
194+
creditlink: http://mademistakes.com #url to their site or licensing
195+
```
196+
188197
#### Categories
189198

190199
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).

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div id="main" role="main" itemprop="mainContentOfPage">
1616
<article class="entry" itemscope itemtype="http://schema.org/ItemPage">
17-
{% if page.image.feature %}<img src="{{ site.url }}/images/{{ page.image.feature }}" class="entry-feature-image" alt="{{ page.title }}" itemprop="image">{% endif %}
17+
{% if page.image.feature %}<img src="{{ site.url }}/images/{{ page.image.feature }}" class="entry-feature-image" alt="{{ page.title }}" itemprop="image">{% if page.image.credit %}<p class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a>{% endif %}{% endif %}
1818
<div class="entry-wrapper">
1919
<header class="entry-header">
2020
<h1 class="entry-title" itemprop="name">{% if page.headline %}{{ page.headline }}{% else %}{{ page.title }}</h1>{% endif %}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div id="main" role="main" itemprop="mainContentOfPage">
1616
<article class="hentry" itemscope itemtype="http://schema.org/BlogPosting">
17-
{% if page.image.feature %}<img src="{{ site.url }}/images/{{ page.image.feature }}" class="entry-feature-image" alt="{{ page.title }}" itemprop="image">{% endif %}
17+
{% if page.image.feature %}<img src="{{ site.url }}/images/{{ page.image.feature }}" class="entry-feature-image" alt="{{ page.title }}" itemprop="image">{% if page.image.credit %}<p class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a>{% endif %}{% endif %}
1818
<div class="entry-wrapper">
1919
<header class="entry-header">
2020
<span class="entry-tags">{% for tag in page.tags %}<a href="{{ site.url }}/tags.html#{{ tag | cgi_encode }}" title="Pages tagged {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %} &bull; {% endunless %}{% endfor %}</span>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ category: articles
77
tags: [sample post]
88
image:
99
feature: so-simple-sample-image-1.jpg
10+
credit: Michael Rose
11+
creditlink: http://mademistakes.com
1012
comments: true
1113
---
1214

_posts/2012-05-22-readability-post.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ category: articles
66
tags: [sample post, readability, test, intro]
77
image:
88
feature: so-simple-sample-image-2.jpg
9+
credit: Michael Rose
10+
creditlink: http://mademistakes.com
911
comments: true
1012
---
1113

_posts/2013-05-23-readability-feature-post.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tags: [sample post, readability]
77
modified: 2013-06-30
88
image:
99
feature: so-simple-sample-image-3.jpg
10+
credit: Michael Rose
11+
creditlink: http://mademistakes.com
1012
comments: true
1113
---
1214

about.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ title: About the Jekyll Theme
55
tags: [Jekyll, theme, simple, minimal, minimalism, responsive]
66
image:
77
feature: so-simple-sample-image-4.jpg
8+
credit: Michael Rose
9+
creditlink: http://mademistakes.com
810
---
911

1012
Looking for a simple, responsive, theme for your Jekyll powered blog? Well look no further. Here be **So Simple Theme**, the followup to [**Minimal Mistakes**](http://mmistakes.github.io/minimal-mistakes) --- by designer slash illustrator [Michael Rose](http://mademistakes).

assets/css/main.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ a:hover{color:#000000;}
3838
a:focus{outline:thin dotted;color:#000000;}
3939
a:hover,a:active{outline:0;}
4040
figcaption{padding-top:10px;font-size:14px;font-size:0.875rem;line-height:1.7143;line-height:1.3;color:#3c3c3c;}
41+
.image-credit{margin:0 auto;max-width:440px;padding-top:5px;padding-right:20px;padding-left:20px;text-align:right;font-size:14px;font-size:0.875rem;line-height:1.7143;line-height:1.3;color:#6f6f6f;*zoom:1;}.image-credit:before,.image-credit:after{display:table;content:"";line-height:0;}
42+
.image-credit:after{clear:both;}
43+
@media only screen and (min-width: 48em){.image-credit{max-width:760px;padding-right:60px;padding-left:60px;}}@media only screen and (min-width: 62.5em){.image-credit{max-width:960px;}}.image-credit a{color:#6f6f6f;}
4144
.notice{margin-top:1.5em;padding:.5em 1em;text-indent:0;font-size:16px;font-size:1rem;background-color:#f2f2f2;border:1px solid #e6e6e6;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
4245
blockquote{font-family:'volkhov',serif;font-style:italic;font-size:24px;font-size:1.5rem;line-height:1;margin-bottom:24px;margin-bottom:1.5rem;padding-left:20px;border-left:8px solid #000000;}
4346
.footnotes{font-size:14px;font-size:0.875rem;line-height:1.7143;font-family:'source-sans-pro',sans-serif;}
@@ -594,7 +597,7 @@ body{margin:0;padding:0;width:100%;background-color:#ffffff;border-top:5px solid
594597
#main:after{clear:both;}
595598
.entry,.hentry{*zoom:1;border-bottom:1px solid #cccccc;border-bottom:1px solid rgba(0, 0, 0, 0.1);}.entry:before,.hentry:before,.entry:after,.hentry:after{display:table;content:"";line-height:0;}
596599
.entry:after,.hentry:after{clear:both;}
597-
.entry-feature-image{margin:20px 0 40px;width:100%;}@media only screen and (min-width: 48em){.entry-feature-image{margin-top:-75px;}}@media only screen and (min-width: 62.5em){.entry-feature-image{margin-top:-145px;}}
600+
.entry-feature-image{margin:20px 0 0;width:100%;}@media only screen and (min-width: 48em){.entry-feature-image{margin-top:-75px;}}@media only screen and (min-width: 62.5em){.entry-feature-image{margin-top:-145px;}}
598601
.entry-header{max-width:640px;width:100%;margin-right:auto;margin-left:auto;}@media only screen and (min-width: 62.5em){.entry-header{max-width:100%;margin-right:0;margin-left:0;}}
599602
.entry-tags{display:block;margin-top:2em;text-transform:uppercase;font-size:16px;font-size:1rem;font-weight:600;}.entry-tags a{color:#222222;}
600603
span+.entry-title{margin-top:0;}

assets/less/page.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ body {
177177
border-bottom: 1px solid fade(@black,10);
178178
}
179179
.entry-feature-image {
180-
margin: 20px 0 40px;
180+
margin: 20px 0 0;
181181
width: 100%;
182182
@media @medium {
183183
margin-top: -75px;

assets/less/typography.less

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,32 @@ figcaption {
4141
color: lighten(@text-color, 10);
4242
}
4343

44+
// Feature Image Caption
45+
// --------------------------------------------------
46+
.image-credit {
47+
margin: 0 auto;
48+
max-width: 440px;
49+
padding-top: 5px;
50+
padding-right: 20px;
51+
padding-left: 20px;
52+
text-align: right;
53+
.font(14);
54+
line-height: 1.3;
55+
color: lighten(@text-color, 30);
56+
.clearfix();
57+
@media @medium {
58+
max-width: 760px;
59+
padding-right: 60px;
60+
padding-left: 60px;
61+
}
62+
@media @large {
63+
max-width: 960px;
64+
}
65+
a {
66+
color: lighten(@text-color, 30);
67+
}
68+
}
69+
4470
// Note text
4571
// --------------------------------------------------
4672
.notice {

theme-setup.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,14 @@ image:
108108
thumb: thumbnail-image.jpg #keep it square 200x200 px is good
109109
{% endhighlight %}
110110

111-
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...
111+
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.
112+
113+
{% highlight yaml %}
114+
image:
115+
feature: feature-image-filename.jpg
116+
credit: Michael Rose #name of the person or site you want to credit
117+
creditlink: http://mademistakes.com #url to their site or licensing
118+
{% endhighlight %}
112119

113120
#### Categories
114121

0 commit comments

Comments
 (0)