diff --git a/internal/pkg/models/wp_posts.go b/internal/pkg/models/wp_posts.go index 10cc88a..bab8aa2 100644 --- a/internal/pkg/models/wp_posts.go +++ b/internal/pkg/models/wp_posts.go @@ -35,6 +35,7 @@ type Posts struct { Tags []string `json:"tags"` CategoriesHtml string TagsHtml string + IsSticky bool Thumbnail PostThumbnail AttachmentMetadata WpAttachmentMetadata } diff --git a/internal/theme/twentyfifteen/posts/index.gohtml b/internal/theme/twentyfifteen/posts/index.gohtml index 7d25ce8..b317b22 100644 --- a/internal/theme/twentyfifteen/posts/index.gohtml +++ b/internal/theme/twentyfifteen/posts/index.gohtml @@ -32,32 +32,35 @@ diff --git a/internal/theme/twentyseventeen/posts/index.gohtml b/internal/theme/twentyseventeen/posts/index.gohtml index 947eb7f..92d98a7 100644 --- a/internal/theme/twentyseventeen/posts/index.gohtml +++ b/internal/theme/twentyseventeen/posts/index.gohtml @@ -17,8 +17,12 @@
{{ range $k,$v:=.posts}} -
- +
+ {{if $v.IsSticky}} + + {{end}}