(post: Post)
| 133 | getPostReadTarget(post).target?.permalink ?? post.permalink; |
| 134 | |
| 135 | export const getReadPostButtonText = (post: Post): string => { |
| 136 | if (isVideoPost(post)) { |
| 137 | return 'Watch video'; |
| 138 | } |
| 139 | |
| 140 | if (isPostOrSharedPostTwitter(post)) { |
| 141 | return 'Read on'; |
| 142 | } |
| 143 | |
| 144 | return 'Read post'; |
| 145 | }; |
| 146 | |
| 147 | export const translateablePostFields = [ |
| 148 | 'title', |
no test coverage detected