-
Notifications
You must be signed in to change notification settings - Fork 0
/
thinking_of_a_dream_i_had.tumblr.html.haml
369 lines (330 loc) · 13.9 KB
/
thinking_of_a_dream_i_had.tumblr.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
!!! 5
%html{ :lang => 'en' }
%head
%meta{ :content => 'text/html; charset=utf-8', 'http-equiv' => 'Content-Type' }
%title<
- b :SearchPage do
Search for: '#{search_query}' :
- b :PostTitle do
#{post_title} :
- b :PostSummary do
#{post_summary} :
= title
-# Tumblr variables (should be, but are not, removed from Tumblr's rendered output)
- meta_var :image, 'Blog Title', ''
- meta_var :font, 'Blog Title', 'Lucida Sans, Arial, Helvetica, sans-serif'
- meta_var :font, 'Content', 'Lucida Sans, Arial, Helvetica, sans-serif'
- meta_var :font, 'Controls', 'Lucida Sans, Arial, Helvetica, sans-serif'
- meta_var :if, 'Show Tags', 1
- meta_var :if, 'Tags have hash marks', 1
- meta_var :if, 'Show link to Random post', 1
- meta_var :if, 'Show link to Follow me', 1
- meta_var :if, 'Show blogs I Follow', 1
- meta_var :if, 'Show posts I Like', 1
- meta_var :if, 'Show Post Notes', 1
- meta_var :text, 'Disqus Shortname', ''
- meta_var :text, 'Pages List Header Text', 'Also check-out:'
%meta{ :name => 'description', :content => meta_description }
%link{ :rel => :alternate, :type => 'application/rss+xml', :href => rss, :title => 'RSS' }
%link{ :rel => :icon, :href => favicon }
%link{ :rel => :stylesheet, :media => :screen, :href => "#{DEV_HOST}/css/colorbox.css", :type => 'text/css' }
%link{ :rel => :stylesheet, :media => :all, :href => "#{DEV_HOST}/css/styles.css", :type => 'text/css' }
/[if lt IE 8]
%script{:src=>"http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE9.js"}
%style{ :type => 'text/css' }
:sass
#title
font-family: "#{font 'Blog Title'}"
body
font-family: "#{font 'Controls'}"
.text-post, .link-post, .quote-post, .answer-post, .caption
font-family: "#{font 'Content'}"
.href
font-family: "#{font 'Controls'}"
.like_post
font-family: "#{font 'Content'}"
.post_info_top, .post_info_bottom
font-family: "#{font 'Controls'}"
= custom_css
/
Theme design by Ryan T. Long <ryan@rtlong.com>
This theme may be found at http://portfolio.rtlong.com/themes/thinkingofadreamihad
%body{:class => "{block:PermalinkPage}permalink-page{/block:PermalinkPage}"}
%h1#title
%a{ :href => '/' }
- b :IfBlogTitleImage do
%img{ :src => image('Blog Title'), :alt => title }
- b :IfNotBlogTitleImage do
= title
#sidebar
%form{ :method => 'get', :action => '/search' }
#search
%h2.hidden Search this Blog
%label.hidden{:for => 'q'} Search for
%input#q{ :name => 'q', :type => 'text', :value => search_query }
%input.hidden{ :type => 'submit', :value => 'Search' }
#description
%h2.hidden About this Blog
= description
- b :HasPages do
#pages
- b :IfPagesListHeaderText do
%h2#header= text 'Pages List Header Text'
- b :IfNotPagesHeaderText do
%h2.hidden Other Pages
%ul
- b :Pages do
%li
%a{:href => url}= label
%ul#meta
- b :IfShowLinkToFollowMe do
%li
%a{ :href => "http://www.tumblr.com/follow/{Name}" } Follow
Me
- b :IfShowLinkToRandomPost do
%li
See something
%a{ :href => "/random" } Random
%li
Browse my
%a{ :href => '/archive' } Archive
%li
Get the
%a{ :href => rss } RSS Feed
- b :IfShowBlogsIFollow do
- b :Following do
#following
%h2 Blogs I Follow
%ul#followed
- b :Followed do
%li
%a{ :href => followed_url, :title => followed_title }= followed_title
- b :IfShowPostsILike do
- b :Likes do
#likes_container
%h2 Stuff I Like
= likes :limit => 5, :width => 180, :summarize => 100
%a{ :href => "http://www.tumblr.com/liked/by/#{name}" } More stuff I like
#content
-# Add this somewhere. Make sure it won't show up for "pages"
-# %h2.hidden Posts
- b :TagPage do
#posts_filter
.back
%a{:href => '/'} All Posts
%h2#tag_page_label Posts tagged <em>#{tag}</em>
- b :DayPage do
#posts_filter
.back
%a{:href => '/'} All Posts
%h2#day_page_label Posts from #{day_of_month} #{month} #{year}
- b :SearchPage do
#posts_filter
.back
%a{:href => '/'} Cancel Search
%h2#search_result_count #{search_result_count} results found for "#{search_query}"
#posts
- b :Posts do
.post{ :id => "post-#{post_id}", :class => tags_as_classes }
- b :Reblog do
.reblog_info<
Reblogged from
%a{ :href => reblog_parent_url }><= reblog_parent_title
- b :RebloggedFromReblog do
%span><
(originally from
%a{:href => reblog_root_url }><= reblog_root_title
)
%span><= ":"
.info
- b :Date do
.posted_at
%a{ :href => "/day/#{year}/#{month_number_with_zero}/#{day_of_month}", :title => "See all posts from #{short_month} #{day_of_month}" }<>= "#{short_month} #{day_of_month}"
%span.hidden.time at {24HourWithZero}:{Minutes}
.permalink
%a{ :href => permalink, :title => 'permalink to this post', :rel => :bookmark }<> permalink
- b :IfShowPostNotes do
- b :NoteCount do
.note-count
%a{ :href => "#{permalink}#notes", :title => note_count_with_label, :rel => :bookmark }<>= note_count_with_label
- b :IfDisqusShortname do
.comment-count
%a.dsq-comment-count{ :href => "#{permalink}#disqus_thread", :title => "view comments on this post" } comments
- b :IfShowTags do
- b :HasTags do
.tags
%ul
- b :Tags do
%li<
%a{:href => tag_url_chrono}><
- b :IfTagsHaveHashMarks do
= "##{tag}"
- b :IfNotTagsHaveHashMarks do
= tag
- b :Text do
.text-post.content
- b :Title do
%h1= title
.body
= body
- b :Link do
.link-post.content
.link
%h1
%a.external{ :href => url, :target => target }= name
%a.href{ :href => url, :target => target }= url
- b :Description do
.caption= description
- b :Photo do
.photo-post
%h1.hidden Photo Post
.photo{ :class => "{block:HighRes}has-high-res{/block:HighRes}" }
=link_open_tag
%img{ :src => photo_url_500, :alt => photo_alt }
=link_close_tag
.hover-info
- b :HighRes do
%a{ :href => photo_url_high_res } View Full Resolution
- b :Caption do
.caption.content= caption
- b :Photoset do
.photoset-post
%h1.hidden Photoset Post
.show-player
%a{ :href => permalink }
%img{:src => "#{DEV_HOST}/images/photoset.png", :alt => "photoset"}/
View Photoset
.player
.hide-player
%a{ :href => '' } Hide
= photoset_500
- b :Caption do
.caption.content= caption
- b :Video do
.video-post
%h1.hidden Video Post
.show-player
%a{ :href => permalink }
%img{:src => "#{DEV_HOST}/images/video.png", :alt => "video"}/
Watch Video
.player
.hide-player
%a{ :href => '' } Hide Video
= video_500
- b :Caption do
.caption.content= caption
- b :Audio do
.audio-post
%h1.hidden Audio Post
- b :AlbumArt do
.album-art
%img{ :src => album_art_url }
.show-player
%a{ :href => permalink }
%img{:src => "#{DEV_HOST}/images/audio.png", :alt => "audio"}/
Listen to this Audio
.player
.hide-player
%a{ :href => '' } Hide Player
= audio_player_grey
.info
%dl
- b :TrackName do
%dt Track Name:
%dd= track_name
- b :Artist do
%dt Artist:
%dd= artist
- b :Album do
%dt Album:
%dd= album
- b :ExternalAudio do
%dt File URL
%dd
%a{ :href => external_audio_url }= external_audio_url
.playcount This track has been played #{formatted_play_count} times
- b :Caption do
.caption.content= caption
- b :Quote do
.quote-post
%blockquote.quote{:class => length}<
%span.marks>< “
= quote
%span.marks>< ”
- b :Source do
.source<
—
%cite= source
- b :Answer do
.answer-post
.question
.icon Q:
%h4
%span.marks>< “
= question
%span.marks>< ”
.asker
%cite
%img.avatar{:src => asker_portrait_url_16}
= asker
.answer
.icon A:
%h4= answer
.clear
- b :PermalinkPage do
- b :IfDisqusShortname do
:javascript
var disqus_url = "#{permalink}";
var disqus_title ="#{post_title}";
var disqus_identifier = "#{post_id}";
%hr/
#comments
%h2 Comments
#disqus_thread
%script{ :type => "text/javascript", :src => "http://disqus.com/forums/#{text 'Disqus Shortname'}/embed.js" }
%noscript Please enable JavaScript to view the comments.
- b :IfShowPostNotes do
- b :PostNotes do
%hr/
#notes
%h2 Notes
.summary #{note_count_with_label} about this post
#notes_container.collapsed= post_notes
- b :IndexPage do
%hr/
#footer
- b :Pagination do
#pagination
- b :PreviousPage do
%a.arrow_nav#previous_page{ :href => previous_page, :title => 'Newer posts', :rel => :prev } ←
%span.status Page #{current_page} of #{total_pages}
- b :NextPage do
%a.arrow_nav#next_page{ :href => next_page, :title => 'Older posts', :rel => :next } →
- b :PermalinkPagination do
#pagination
- b :PreviousPost do
%a.nav#previous_post{ :href => previous_post, :title => 'Older Post', :rel => :prev } Older Post
- b :NextPost do
|
- b :NextPost do
%a.nav#next_post{ :href => next_post, :title => 'Newer Post', :rel => :next } Newer Post
- b :DayPagination do
#pagination
- b :PreviousDayPage do
%a.nav#previous_day{ :href => previous_day_page, :title => "#{year}-#{month_number_with_zero}-#{day_of_month}", :rel => :prev } #{short_month} #{day_of_month}
- b :NextDayPage do
|
- b :NextDayPage do
%a.nav#next_day{ :href => next_day_page, :title => "#{year}-#{month_number_with_zero}-#{day_of_month}", :rel => :next } #{short_month} #{day_of_month}
#back_to_index
%a{ :href => "/", :rel => :home } Home
%a#return_to_top.hidden{ :href => "#" }
%img{ :src => 'http://assets.tumblr.com/images/jump_to_top_arrow.png', :alt => '^ Return to Top ^' }
%script{ :type => 'text/javascript', :src => 'http://assets.rtlong.com/thinkingofadreamihad/js/theme_credit.js' }
%script{ :src => "#{STATIC_HOST}/js/jquery.min.js", :type => 'text/javascript' }
%script{ :src => "#{STATIC_HOST}/js/jquery.colorbox.min.js", :type => 'text/javascript' }
%script{ :src => "#{STATIC_HOST}/js/jquery.scrollTo.min.js", :type => 'text/javascript' }
- b :IfDisqusShortname do
:javascript
window.disqus_shortname = "#{text 'Disqus Shortname'}";
%script{ :src => "#{DEV_HOST}/js/main.js", :type => 'text/javascript' }