From 68e2014c8489a388fccd32181126c6d93541f48a Mon Sep 17 00:00:00 2001 From: Sandeep Chivukula Date: Thu, 1 Aug 2013 22:39:13 -0700 Subject: [PATCH 1/2] Added Image Credit --- _layouts/post.html | 2 +- assets/css/main.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index f836f50..3017e67 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -14,7 +14,7 @@
- {% if page.image.feature %}{{ page.title }}{% endif %} + {% if page.image.feature %}{{ page.title }}{% if page.image.credit %}

Photo Credit: {{page.image.credit}}{% endif %}{% endif %}

diff --git a/assets/css/main.css b/assets/css/main.css index 5229692..fc83643 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -627,3 +627,6 @@ span+.entry-title{margin-top:0;} #goog-wm-qt{width:auto;margin-right:10px;} #goog-wm-sb{display:inline-block;padding:8px 20px;background-color:#000000;color:#ffffff;border:2px solid #000000 !important;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;}#goog-wm-sb:visited{color:#ffffff;} #goog-wm-sb:hover{background-color:#ffffff;color:#000000;} + +.image-credit{font-size:0.8rem; color: #999; margin-top:-40px;text-transform:uppercase} +.image-credit a{font-size:0.8rem; color: #999;} \ No newline at end of file From b4488c82ace23890ff8a6f2a8401dc1f0c3bdb1c Mon Sep 17 00:00:00 2001 From: Sandeep Chivukula Date: Sat, 3 Aug 2013 11:59:49 -0700 Subject: [PATCH 2/2] Wrapped image.creditlink in quotes; Extended Feature Image Credit to Page Layout as well. --- _layouts/page.html | 2 +- _layouts/post.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/page.html b/_layouts/page.html index ee85b10..93f48a6 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -14,7 +14,7 @@
- {% if page.image.feature %}{{ page.title }}{% endif %} + {% if page.image.feature %}{{ page.title }}{% if page.image.credit %}

Photo Credit: {{page.image.credit}}{% endif %}{% endif %}

{% if page.headline %}{{ page.headline }}{% else %}{{ page.title }}

{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index 3017e67..d2bc7a7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -14,7 +14,7 @@
- {% if page.image.feature %}{{ page.title }}{% if page.image.credit %}

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

Photo Credit: {{page.image.credit}}{% endif %}{% endif %}