Micropub endpoint for my blog https://jlelse.blog/posts/hugo-micropub/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
924 B

  1. package main
  2. type MicroformatItem struct {
  3. Type []string `json:"type"`
  4. Properties *MicroformatProperties `json:"properties"`
  5. }
  6. type MicroformatProperties struct {
  7. Name []string `json:"name,omitempty"`
  8. Published []string `json:"published,omitempty"`
  9. Updated []string `json:"updated,omitempty"`
  10. Category []string `json:"category,omitempty"`
  11. Content []string `json:"content,omitempty"`
  12. Url []string `json:"url,omitempty"`
  13. InReplyTo []string `json:"in-reply-to,omitempty"`
  14. LikeOf []string `json:"like-of,omitempty"`
  15. BookmarkOf []string `json:"bookmark-of,omitempty"`
  16. MpSlug []string `json:"mp-slug,omitempty"`
  17. MpSyndicateTo []string `json:"mp-syndicate-to,omitempty"`
  18. Photo []interface{} `json:"photo,omitempty"`
  19. Audio []string `json:"audio,omitempty"`
  20. }