Permalink
Browse files

Added description paragraphs

  • Loading branch information...
1 parent 6eb9139 commit 6ecb1ce7b42abfeb5fdfaac00f4de17bffebc5a8 @tj committed Mar 30, 2012
Showing with 16 additions and 11 deletions.
  1. +16 −11 bin/bm
View
27 bin/bm
@@ -244,20 +244,25 @@ create_bookmark_screenshots() {
view_bookmark_screenshots() {
create_bookmark_screenshots
- local urls=`urls "$1"`
style > /tmp/bm.html
- for url in $urls; do
- local path=$THUMBS/`echo $url | md5`.png
- echo "
- <div class=bm>
- <a href='$url'>
- <img src='$path' />
- </a>
- </div>
- " >> /tmp/bm.html
- done
+ (
+ while read line; do
+ local url=`echo "$line" | cut -d '|' -f 1`
+ local desc=`echo "$line" | cut -d '|' -f 2`
+ local tags=`echo "$line" | cut -d '|' -f 3`
+ local path=$THUMBS/`echo $url | md5`.png
+ echo "
+ <div class=bm>
+ <a href='$url'>
+ <img src='$path' />
+ </a>
+ <p>$desc</p>
+ </div>
+ " >> /tmp/bm.html
+ done
+ ) < $BOOKMARKS
open /tmp/bm.html
}

0 comments on commit 6ecb1ce

Please sign in to comment.