Guest User

Untitled

a guest
Feb 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. {% block title %}
  2. {% if title is defined %}
  3. <title>{{ title }}</title>
  4. {% endif %}
  5. {% endblock %}
  6.  
  7. {% block description %}
  8. {% if description is defined %}
  9. <meta name="description" content="{{ description }}">
  10. {% endif %}
  11. {% endblock %}
  12.  
  13.  
  14. {% block social_media_links %}
  15. {% block fb_graph %}
  16. {% if type is defined %}
  17. <meta property="og:type" content="{{ type }}" />
  18. {% endif %}
  19. {% if title is defined %}
  20. <meta property="og:title" content="{{ title }}" />
  21. {% endif %}
  22. {% if description is defined %}
  23. <meta property="og:description" content="{{ description }}" />
  24. {% endif %}
  25. <meta property="og:url" content="{{ app.request.uri }}" />
  26. {% if image is defined %}
  27. <meta property="og:image" content="{{ image }}" />
  28. {% endif %}
  29. {% if site_name is defined %}
  30. <meta property="og:site_name" content="{{ site_name }}" />
  31. {% endif %}
  32. {% if fb_author_uri is defined %}
  33. <meta property="article:author" content="{{ fb_author_uri }}" />
  34. {% endif %}
  35. {% endblock %}
  36.  
  37. {% block twitter_card %}
  38. <meta name="twitter:card" content="card_type"/>
  39. {% if description is defined %}
  40. <meta name="twitter:description" content="{{ description }}"/>
  41. {% endif %}
  42. {% if title is defined %}
  43. <meta name="twitter:title" content="{{ title }}"/>
  44. {% endif %}
  45. {% if site_name is defined %}
  46. <meta name="twitter:domain" content="{{ site_name }}"/>
  47. {% endif %}
  48. {% if image is defined %}
  49. <meta name="twitter:image:src" content="{{ image }}"/>
  50. {% endif %}
  51. {% if twitter_author_handle is defined %}
  52. <meta name="twitter:creator" content="{{ twitter_author_handle }}"/>
  53. {% endif %}
  54. {% endblock %}
  55.  
  56. {% endblock %}
Add Comment
Please, Sign In to add comment