head.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <head>
  2. <meta charset="utf-8">
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="format-detection" content="telephone=no">
  6. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
  7. <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else if page.description %}{{ page.description }} {% else %}{{ site.description }}{% endif %}">
  8. <title>
  9. {% if page.title %}
  10. {% if page.title_suffix %}
  11. {{ page.title }} - {{ page.title_suffix }}
  12. {% else %}
  13. {{ page.title }} - {{ site.title_suffix }}
  14. {% endif %}
  15. {% else %}
  16. {{ site.title }}
  17. {% endif %}
  18. </title>
  19. <link rel="SHORTCUT ICON" href="{{ site.baseurl }}/favicon.ico"/>
  20. {% capture canonical_link %}{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'index.html','' }}{% endcapture %}
  21. {% comment %}
  22. Canonical link for docs pages should point to the latest version of the page
  23. {% endcomment %}
  24. {% if page.version %}
  25. {% capture latest_url %}{{ page.url | replace_first: page.version, 'latest' }}{% endcapture %}
  26. {% if site.data.all-pages contains latest_url %}
  27. {% capture canonical_link %}{{ canonical_link | replace_first: page.version, 'latest' }}{% endcapture %}
  28. {% endif %}
  29. {% endif %}
  30. <link rel="canonical" href="{{ canonical_link }}">
  31. <!-- CSS -->
  32. <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/main.css">
  33. <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/lib/syntax.css">
  34. <!-- Algolia Search CSS -->
  35. <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
  36. <!-- Fonts -->
  37. <!-- For attribution information, see www/attributions.html -->
  38. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  39. <!--[if lt IE 9]>
  40. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  41. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  42. <![endif]-->
  43. <script type="text/javascript">
  44. var disqus_developer = 1; // this would set it to developer mode
  45. </script>
  46. <!-- JS -->
  47. <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/jquery-2.1.1.min.js"></script>
  48. <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/bootstrap.min.js"></script>
  49. <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/ZeroClipboard.js"></script>
  50. </head>