diff --git a/README.md b/README.md index 60831cdd..b478e1af 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ General notes and suggestions for customizing Minimal Mistakes. minimal-mistakes/ ├── _includes | ├── author-bio.html //bio stuff goes here -| ├── chrome-frame.html //displays on IE8 and less +| ├── browser-upgrade.html //displays on IE8 and less | ├── footer.html //site footer | ├── head.html //site head | ├── navigation.html //site top nav @@ -112,6 +112,15 @@ image: 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... +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. + +``` yaml +image: + feature: feature-image-filename.jpg + credit: Michael Rose #name of the person or site you want to credit + creditlink: http://mademistakes.com #url to their site or licensing +``` + #### Categories 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). diff --git a/_includes/author-bio.html b/_includes/author-bio.html index 9ef2e8cc..0dd3666b 100644 --- a/_includes/author-bio.html +++ b/_includes/author-bio.html @@ -1,11 +1,11 @@ -{{ site.owner.name }} bio photo -

{{ site.owner.name }}

+{{ site.owner.name }} bio photo +

{{ site.owner.name }}

{{ site.owner.bio }}

-{% if site.owner.twitter %}

Twitter

{% endif %} -{% if site.owner.facebook %}

Facebook

{% endif %} -{% if site.owner.google_plus %}

Google+

{% endif %} -{% if site.owner.linkedin %}

LinkedIn

{% endif %} -{% if site.owner.instagram %}

Instagram

{% endif %} -{% if site.owner.github %}

Github

{% endif %} -{% if site.owner.lastfm %}

Last.fm

{% endif %} -{% if site.owner.tumblr %}

Tumblr

{% endif %} \ No newline at end of file +{% if site.owner.twitter %} Twitter{% endif %} +{% if site.owner.facebook %} Facebook{% endif %} +{% if site.owner.google_plus %} Google+{% endif %} +{% if site.owner.linkedin %} LinkedIn{% endif %} +{% if site.owner.instagram %} Instagram{% endif %} +{% if site.owner.github %} Github{% endif %} +{% if site.owner.lastfm %} Last.fm{% endif %} +{% if site.owner.tumblr %} Tumblr{% endif %} \ No newline at end of file diff --git a/_includes/browser-upgrade.html b/_includes/browser-upgrade.html new file mode 100644 index 00000000..99d9cbc2 --- /dev/null +++ b/_includes/browser-upgrade.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_includes/chrome-frame.html b/_includes/chrome-frame.html deleted file mode 100644 index b65f1b01..00000000 --- a/_includes/chrome-frame.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 5c7e7bbc..0f93d659 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1 +1 @@ -
© {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by Jekyll using the Minimal Mistakes theme.
+© {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by Jekyll using the Minimal Mistakes theme. diff --git a/_layouts/home.html b/_layouts/home.html index bdced321..39e56816 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -9,26 +9,21 @@ -{% include chrome-frame.html %} +{% include browser-upgrade.html %} {% include navigation.html %} -
-
-

{{ page.title }}

- {% if page.tagline %}

{{ page.tagline }}

{% endif %} -
- {{ page.title }} feature image -
+{% if page.image.feature %}
+ {{ page.title }} feature image + {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %} +
{% endif %}
{% include author-bio.html %}
- View all articles -

Latest Articles

-
+

Articles

{% for post in site.categories.articles limit:5 %}

{{ post.title }}

diff --git a/_layouts/page.html b/_layouts/page.html index 754c0651..9466931e 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -9,12 +9,13 @@ -{% include chrome-frame.html %} +{% include browser-upgrade.html %} {% include navigation.html %} {% if page.image.feature %}
{{ page.title }} feature image + {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %}
{% endif %}
@@ -22,9 +23,7 @@ {% include author-bio.html %}
-
-

{{ page.title }}

-
+

{{ page.title }}

{{ content }}
diff --git a/_layouts/post-index.html b/_layouts/post-index.html index 6ed5c8b6..83cac079 100644 --- a/_layouts/post-index.html +++ b/_layouts/post-index.html @@ -9,33 +9,29 @@ -{% include chrome-frame.html %} +{% include browser-upgrade.html %} {% include navigation.html %} -
-
-

{{ page.title }}

- {% if page.tagline %}

{{ page.tagline }}

{% endif %} -
- {{ page.title }} feature image -
+{% if page.image.feature %}
+ {{ page.title }} feature image + {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %} +
{% endif %}
+

{{ page.title }}

{% for post in site.posts %} {% unless post.next %}

{{ post.date | date: '%Y' }}

-
{% else %} {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} {% if year != nyear %}

{{ post.date | date: '%Y' }}

-
{% endif %} {% endunless %}
diff --git a/_layouts/post.html b/_layouts/post.html index de352d0d..5539ee0d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -9,12 +9,13 @@ -{% include chrome-frame.html %} +{% include browser-upgrade.html %} {% include navigation.html %} {% if page.image.feature %}
{{ page.title }} feature image + {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %}
{% endif %}
@@ -23,7 +24,7 @@
-

{{ page.title }}

+

{{ page.title }}

{{ page.tagline }}

@@ -40,7 +41,7 @@