Advertisement
akumaru

Memasang Meta Tag di Template Blog 1

Feb 13th, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.36 KB | None | 0 0
  1.  <!--Meta keyword -->
  2. <b:if cond='data:blog.pageType == &quot;item&quot;'>
  3. <b:section id='meta1' showaddelement='no'>
  4. <!-- widget must be a of Type = 'blog' to have posts data exposed, and must have a unique id -->
  5. <!-- Empty Includables(functions) to output nothing, You must keep them ): -->
  6. <b:widget id='Blog2' locked='no' type='Blog'>
  7. <b:includable id='nextprev'/>
  8. <b:includable id='backlinks' var='post'/>
  9. <b:includable id='post' var='post' />
  10. <b:includable id='status-message'/>
  11. <b:includable id='comment-form' var='post'/>
  12. <b:includable id='backlinkDeleteIcon' var='backlink'/>
  13. <b:includable id='postQuickEdit' var='post'/>
  14. <b:includable id='commentDeleteIcon' var='comment'/>
  15. <b:includable id='feedLinks'/>
  16. <b:includable id='feedLinksBody' var='links'/>
  17. <b:includable id='comments' var='post'/>
  18. <b:includable id='main' var='top'><!-- Main Function of Any widget comes with ID 'main' -->
  19. <!-- Loop Page Posts (only 1 in a post page )-->
  20. <b:loop values='data:posts' var='post'>
  21. <b:if cond='data:post.labels'>
  22. <!-- If the post has labels, make Meta keywords by looping lables -->
  23. &lt;meta name=&quot;keywords&quot; content=&quot;<b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if></b:loop>&quot; /&gt;
  24. </b:if>
  25. </b:loop>
  26. </b:includable>
  27. </b:widget>
  28. </b:section>
  29. </b:if>
  30. <!--Meta End -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement