Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (56 sloc) 1.8 KB
- @previous_tags = []
%h2 A Year of Links: #{@year.year_string}
© 2012-#{} Alex Forey
Set in Museo Sans and Helvetica Neue Light.
Data extracted from Markpond.
%h1 A Year of Links: #{@year.year_string}
%h2 Alex Forey
%h3 Volume #{@year.volume_number}
%h2 Contents
-@bookmarks_by_month.each do |month, collection|
%a{:href => "##{mark_hash(month)}"}= month
- @bookmarks_by_month.each do |month, collection|
- if collection.any?
%a{:name => mark_hash(month)}
= month
- collection.group_by(&:day).each do |day, day_collection|
- if day_collection.any?
.day_container format_date(day_collection.first.bookmarked_at)
- for bookmark in day_collection
%img{:src => bookmark.qr_for_url}
%h4= h bookmark.title
.href= h bookmark.url
.desc= h bookmark.excerpt
- if bookmark.via
.via= h "Via: " + bookmark.via
-output = []
- bookmark.tags.each do |t|
- unique_id, new_previous_tags = id_for_tag(t, @previous_tags)
- output << "<span id='#{unique_id}'>#{t}</span>"
= output.join(", ")
%h2 Tag Index
- uniq_tags = @previous_tags.uniq
- for tag in uniq_tags.sort
= tag
= @previous_tags.count(tag) {|i| "<a href='##{tag}-#{i+1}'></a>"}.join(", ")
You can’t perform that action at this time.