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