html-header.twig 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <!doctype html>
  2. <!--[if lt IE 9]><html class="no-js no-svg ie lt-ie9 lt-ie8 lt-ie7" {{ site.language_attributes }}> <![endif]-->
  3. <!--[if IE 9]><html class="no-js no-svg ie ie9 lt-ie9 lt-ie8" {{ site.language_attributes }}> <![endif]-->
  4. <!--[if gt IE 9]><!--><html class="no-js no-svg" {{ site.language_attributes }}> <!--<![endif]-->
  5. <head>
  6. <meta charset="{{ site.charset }}" />
  7. <meta name="description" content="{{ site.description }}">
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" href="{{ site.theme.link }}/dist/assets/css/index.min.css" type="text/css" media="screen" />
  12. <link rel="author" href="{{ site.theme.link }}/humans.txt" />
  13. <link rel="pingback" href="{{ site.pingback_url }}" />
  14. <link rel="profile" href="http://gmpg.org/xfn/11">
  15. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  16. {% if post.post_type == "post" %}
  17. {% set thumb = Image(post.image_event).src %}
  18. {% set type = "article" %}
  19. {% else %}
  20. {% set thumb = post.thumbnail %}
  21. {% set type = "website" %}
  22. {% endif %}
  23. <meta property="og:title" content="{{post.title}}">
  24. <meta property="og:image" content="{{thumb}}">
  25. <meta property="og:url" content="{{post.link}}">
  26. <meta property="og:type:" content="">
  27. <meta name="twitter:title" content="{{post.title}}">
  28. <meta name="twitter:image" content="{{thumb}}">
  29. <meta name="twitter:card" content="summary_large_image">
  30. {{function('wp_head')}}