Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use image_src on the homepage, that way the user can choose the…

… image.
  • Loading branch information...
commit fb8b2dc497b1cf3fb3c46f690d3d3fbbcde437d9 1 parent 3e39e43
@akahn authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 recent_work.rb
View
5 recent_work.rb
@@ -73,7 +73,8 @@ def convert_line_breaks(text)
= yield_content :title
| Esther S White: Recent Work
%link{:rel => "alternate", :type => "application/atom+xml", :title => "Esther S White: Recent Work", :href => "http://api.flickr.com/services/feeds/photoset.gne?set=72157622782141504&nsid=92576348@N00&lang=en-us&format=atom"}
- %link{:rel => "image_src", :href => yield_content(:image_src)}
+ - unless yield_content(:image_src).empty?
+ %link{:rel => "image_src", :href => yield_content(:image_src)}
%link{:rel => "stylesheet", :href => "/reset.css", :type => "text/css"}
%link{:rel => "stylesheet", :href => "/styles.css", :type => "text/css"}
%link{:rel => "icon", :href => "http://www.estherswhite.net/tumblr/favicon.png"}
@@ -94,8 +95,6 @@ def convert_line_breaks(text)
Home
- content_for :body_class do
index
-- content_for :image_src do
- = photo_url(@pieces.first, "s")
#container
- @pieces.each do |piece|
%a{:href => photo_page_url(piece), :title => piece['title']}
Please sign in to comment.
Something went wrong with that request. Please try again.