aboutsummaryrefslogtreecommitdiffstats
path: root/post/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'post/post.go')
-rw-r--r--post/post.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/post/post.go b/post/post.go
index 7fa7e90..5860eee 100644
--- a/post/post.go
+++ b/post/post.go
@@ -41,6 +41,8 @@ type Post struct {
InFuture bool
WordCount int
Tags []string
+ Urls []string
+ Imgs []string
// Content text -- raw, unprocessed, unfiltered markdown
Text string
@@ -220,6 +222,10 @@ func (p *Post) parse() {
p.Tags = append(p.Tags, NormalizeTag(tag))
}
}
+
+ // Images and URLs
+ p.Urls = render.FindURLs(p.AbsoluteContent)
+ p.Imgs = render.FindImgs(p.AbsoluteContent)
}
/*