Sha256: bf1ecfb631082e1014270409223408ffb8ee3ba0627a39e4dccba7f20dee49a2

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

doctype xml
feed xmlns="http://www.w3.org/2005/Atom"
  title Photography by #{site_metadata[:author_name]}
  author
    name #{site_metadata[:author_name]}
  link rel="self" href=URI::join(Piccle.config.home_url, joined_selector, "feed.atom")
  link rel="alternate" href=URI::join(Piccle.config.home_url, joined_selector, "index.html")
  icon = URI::join(Piccle.config.home_url, "icons", "android-chrome-192x192.png")
  updated = feed_update_time.strftime("%FT%T%:z")
  id = URI::join(Piccle.config.home_url, joined_selector, "feed.atom")

  - photos.map do |hash, photo|
    entry
      title = photo[:title] || "A photo by #{site_metadata[:author_name]}"
      link rel="alternate" href=URI::join(Piccle.config.home_url, joined_selector, "#{photo[:hash]}.html")
      id = URI::join(Piccle.config.home_url, joined_selector, "#{photo[:hash]}.html")
      updated = photo[:created_at].strftime("%FT%T%:z")
      content type="html"
        == Piccle::TemplateHelpers.escape_html
          - if photo[:title]
            h1 = photo[:title]
          img src=URI::join(Piccle.config.home_url, "/images/photos/", "#{photo[:hash]}.#{URI::DEFAULT_PARSER.escape(photo[:file_name])}")
          - if photo[:description]
            p = photo[:description]
          - if photo[:has_location]
            p #{[photo[:city], photo[:state], photo[:country]].compact.join(", ")}.
          - if photo[:taken_at]
            p Taken #{photo[:taken_at].strftime("%-d %B, %Y.")}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piccle-0.1.1.pre templates/feed.atom.slim
piccle-0.1.0.rc1 templates/feed.atom.slim