From acd87201268bcf132fee9559d7e068144f152c5b Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 25 Feb 2016 08:15:54 -0500 Subject: [PATCH] Allow Markdown for header.image.caption - Simplify and remove extra variables by condensing into one --- _layouts/default.html | 4 ++-- _pages/about.md | 4 ---- _pages/home.md | 4 +--- _posts/2012-03-15-template-featured-image-horizontal.md | 4 +--- _posts/2012-03-15-template-featured-image-text-readability.md | 4 +--- _posts/2012-03-15-template-featured-image-vertical.md | 4 +--- _sass/typography.scss | 2 +- 7 files changed, 7 insertions(+), 19 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index e4335ba5..6c1d60bc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -24,8 +24,8 @@ layout: compress "{{ page.header.image | prepend: "/images/" | prepend: absurl }}" {% endif %} alt="{{ page.title }}"> - {% if page.header.credit %} - Photo Credit: {{ page.header.credit.caption }} + {% if page.header.caption %} + {{ page.header.caption | markdownify | remove: "

" | remove: "

" }}
{% endif %} {% endif %} diff --git a/_pages/about.md b/_pages/about.md index 1353d489..50fda9b2 100644 --- a/_pages/about.md +++ b/_pages/about.md @@ -2,10 +2,6 @@ permalink: /about/ title: "About the Theme" modified: 2014-08-08T20:53:07.573882-04:00 -image: - feature: sample-image-2.jpg - credit: WeGraphics - creditlink: http://wegraphics.net/downloads/free-ultimate-blurred-background-pack/ --- Minimal Mistakes is responsive Jekyll theme with large featured images and solid typography. As the name implies the styling is fairly minimal to make it easier for you to build on top of. diff --git a/_pages/home.md b/_pages/home.md index 4246e0e3..100e444f 100644 --- a/_pages/home.md +++ b/_pages/home.md @@ -4,7 +4,5 @@ permalink: / excerpt: "A minimal Jekyll theme for your blog by designer Michael Rose." header: image: unsplash-image-7.jpg - credit: - caption: Unsplash - url: https://unsplash.com + caption: "Photo credit: [**Unsplash**](https://unsplash.com)" --- \ No newline at end of file diff --git a/_posts/2012-03-15-template-featured-image-horizontal.md b/_posts/2012-03-15-template-featured-image-horizontal.md index 2530159f..15d944bf 100644 --- a/_posts/2012-03-15-template-featured-image-horizontal.md +++ b/_posts/2012-03-15-template-featured-image-horizontal.md @@ -3,9 +3,7 @@ title: "Template: Featured Image (Horizontal)" date: 2012-03-15T15:15:12+00:00 header: image: unsplash-image-1.jpg - credit: - caption: Unsplash - url: https://unsplash.com + caption: "Photo credit: [**Unsplash**](https://unsplash.com)" categories: - Template - Uncategorized diff --git a/_posts/2012-03-15-template-featured-image-text-readability.md b/_posts/2012-03-15-template-featured-image-text-readability.md index 9f73aed6..19da4bc9 100644 --- a/_posts/2012-03-15-template-featured-image-text-readability.md +++ b/_posts/2012-03-15-template-featured-image-text-readability.md @@ -2,9 +2,7 @@ title: "Template: Featured Image And Text Readability" header: image: unsplash-image-4.jpg - credit: - caption: Unsplash - url: https://unsplash.com + caption: "Photo credit: [**Unsplash**](https://unsplash.com)" tags: - sample post - readability diff --git a/_posts/2012-03-15-template-featured-image-vertical.md b/_posts/2012-03-15-template-featured-image-vertical.md index 169ae676..a2899e8c 100644 --- a/_posts/2012-03-15-template-featured-image-vertical.md +++ b/_posts/2012-03-15-template-featured-image-vertical.md @@ -3,9 +3,7 @@ title: "Template: Featured Image (Vertical)" date: 2012-03-15T15:36:32+00:00 header: image: unsplash-image-6.jpg - credit: - caption: Unsplash - url: https://unsplash.com + caption: "Photo credit: [**Unsplash**](https://unsplash.com)" categories: - Template - Uncategorized diff --git a/_sass/typography.scss b/_sass/typography.scss index 873c4ada..3dc6c5a7 100644 --- a/_sass/typography.scss +++ b/_sass/typography.scss @@ -66,7 +66,7 @@ figcaption { Feature image captions ========================================================================== */ -.image-credit { +.image-caption { @include grid(12,10); @include prefix(12,1); @include suffix(12,1);