public String title(Post post) { if (post.getSeo() != null && post.getSeo().getTitle() != null) { return post.getSeo().getTitle(); } Blog blog = blogService.readBlogById(Blog.DEFAULT_ID); return String.format( "%s | %s", post.getTitle(), blog.getTitle(processingContext.getContext().getLocale().getLanguage())); }
public String metaDescription(Post post) { return post.getSeo() != null ? post.getSeo().getDescription() : null; }
public String metaKeywords(Post post) { return post.getSeo() != null ? post.getSeo().getKeywords() : null; }