diff --git a/entry.go b/entry.go index 5d08941..0db8772 100644 --- a/entry.go +++ b/entry.go @@ -102,6 +102,9 @@ func createEntryFromValueMap(values map[string][]string) (*Entry, error) { if likeOf, ok := values["like-of"]; ok { entry.likeLink = likeOf[0] } + if bookmarkOf, ok := values["bookmark-of"]; ok { + entry.link = bookmarkOf[0] + } if syndicate, ok := values["mp-syndicate-to"]; ok { entry.syndicate = syndicate } else if syndicates, ok := values["mp-syndicate-to[]"]; ok { @@ -144,6 +147,9 @@ func createEntryFromMicroformat(mfEntry *MicroformatItem) (*Entry, error) { if len(mfEntry.Properties.LikeOf) == 1 { entry.likeLink = mfEntry.Properties.LikeOf[0] } + if len(mfEntry.Properties.BookmarkOf) == 1 { + entry.link = mfEntry.Properties.BookmarkOf[0] + } if len(mfEntry.Properties.MpSyndicateTo) > 0 { entry.syndicate = mfEntry.Properties.MpSyndicateTo } diff --git a/microformat.go b/microformat.go index 5092774..4565f50 100644 --- a/microformat.go +++ b/microformat.go @@ -14,6 +14,7 @@ type MicroformatProperties struct { Url []string `json:"url,omitempty"` InReplyTo []string `json:"in-reply-to,omitempty"` LikeOf []string `json:"like-of,omitempty"` + BookmarkOf []string `json:"bookmark-of,omitempty"` MpSlug []string `json:"mp-slug,omitempty"` MpSyndicateTo []string `json:"mp-syndicate-to,omitempty"` }