Exemplo n.º 1
0
 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()));
 }
Exemplo n.º 2
0
 public String metaDescription(Post post) {
   return post.getSeo() != null ? post.getSeo().getDescription() : null;
 }
Exemplo n.º 3
0
 public String metaKeywords(Post post) {
   return post.getSeo() != null ? post.getSeo().getKeywords() : null;
 }