Added Photos on tumblr example api

This commit is contained in:
Sahat Yalkabov
2013-12-08 00:35:35 -05:00
parent 36048fe2f5
commit ced190e0af
3 changed files with 17 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ block content
a(href='#{repo.html_url}') #{repo.name}
.btn.btn-sm.btn-primary-outline
i.fa.fa-eye-slash
| Watchers: #{repo.watchers_count}
| Subscribers: #{repo.subscribers_count}
.btn.btn-sm.btn-primary-outline
i.fa.fa-star
| Starred: #{repo.stargazers_count}
@@ -38,6 +38,6 @@ block content
.btn.btn-sm.btn-primary-outline
i.fa.fa-code
| #{repo.language}
.well
strong DESCRIPTION
p= repo.description
br
strong DESCRIPTION
p= repo.description

View File

@@ -16,4 +16,12 @@ block content
i.fa.fa-code-fork
| API Endpoints
h2= blog
h3.text-primary #{blog.name}'s blog
strong Blog Stats
p
.btn.btn-xs.btn-primary-outline
i.fa.fa-file-text-o
| #{blog.posts} posts
for photo in photos
img(src='#{photo.alt_sizes.slice(-3)[0].url}')