You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
3.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <head>
  2. <meta charset="utf-8">
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
  6. <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
  7. <link href="{{ "/css/bass.css" | prepend: site.baseurl }}" rel="stylesheet">
  8. <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
  9. <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
  10. <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
  11. <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  12. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js"></script>
  13. <link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/icons/apple-touch-icon.png">
  14. <link rel="icon" type="image/png" sizes="32x32" href="{{ site.baseurl }}/icons/favicon-32x32.png">
  15. <link rel="icon" type="image/png" sizes="16x16" href="{{ site.baseurl }}/icons/favicon-16x16.png">
  16. <link rel="manifest" href="{{ site.baseurl }}/manifest.json">
  17. <link rel="mask-icon" href="{{ site.baseurl }}/icons/safari-pinned-tab.svg" color="#007fff">
  18. <link rel="shortcut icon" href="{{ site.baseurl }}/icons/favicon.ico">
  19. <meta name="msapplication-TileColor" content="#007fff">
  20. <meta name="msapplication-config" content="{{ site.baseurl }}/icons/browserconfig.xml">
  21. <meta name="theme-color" content="#007fff">
  22. <script>
  23. if ("serviceWorker" in navigator) {
  24. if (navigator.serviceWorker.controller) {
  25. console.log("An active service worker found, no need to register");
  26. } else {
  27. // Register the service worker
  28. navigator.serviceWorker
  29. .register("{{ site.baseurl }}/serviceworker.js", {
  30. scope: "./"
  31. })
  32. .then(function (reg) {
  33. console.log("Service worker has been registered for scope: " + reg.scope);
  34. });
  35. }
  36. }
  37. </script>
  38. <!-- Twitter Cards -->
  39. <meta name="twitter:card" content="summary_large_image">
  40. <meta name="twitter:site" content="@chowdownapp">
  41. <meta name="twitter:creator" content="@clarklab">
  42. {% if page.title %}<meta name="twitter:title" content="{{ page.title }}">{% else %}<meta name="twitter:title" content="Chowdown">{% endif %}
  43. {% if page.url %}<meta name="twitter:url" content="{{ site.baseurl }}{{ page.url }}">{% endif %}
  44. {% if page.directions %}<meta name="twitter:description" content="{{ page.content | strip_html }}">{% else %}<meta name="twitter:description" content="Chowdown">{% endif %}
  45. {% if page.image %}<meta name="twitter:image:src" content="{{site.baseurl}}/images/{{ page.image }}">{% else %}<meta name="twitter:image:src" content="{{site.baseurl}}/images/crockpot-buffalo-chicken.jpg">{% endif %}
  46. </head>