~xdavidwu/xdavidwu.link

acd87201268bcf132fee9559d7e068144f152c5b — Michael Rose 9 years ago 63f8c36
Allow Markdown for header.image.caption
- Simplify and remove extra variables by condensing into one
M _layouts/default.html => _layouts/default.html +2 -2
@@ 24,8 24,8 @@ layout: compress
        "{{ page.header.image | prepend: "/images/" | prepend: absurl }}"
      {% endif %}
      alt="{{ page.title }}">
    {% if page.header.credit %}
      <span class="image-credit">Photo Credit: <a href="{{ page.header.credit.url }}">{{ page.header.credit.caption }}</a></span>
    {% if page.header.caption %}
      <span class="image-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
    {% endif %}
    </div><!-- /.image-wrap -->
  {% endif %}

M _pages/about.md => _pages/about.md +0 -4
@@ 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.

M _pages/home.md => _pages/home.md +1 -3
@@ 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

M _posts/2012-03-15-template-featured-image-horizontal.md => _posts/2012-03-15-template-featured-image-horizontal.md +1 -3
@@ 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

M _posts/2012-03-15-template-featured-image-text-readability.md => _posts/2012-03-15-template-featured-image-text-readability.md +1 -3
@@ 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

M _posts/2012-03-15-template-featured-image-vertical.md => _posts/2012-03-15-template-featured-image-vertical.md +1 -3
@@ 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

M _sass/typography.scss => _sass/typography.scss +1 -1
@@ 66,7 66,7 @@ figcaption {
   Feature image captions
   ========================================================================== */

.image-credit {
.image-caption {
	@include grid(12,10);
	@include prefix(12,1);
	@include suffix(12,1);