Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
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.

83 lines
3.0 KiB

9 years ago
9 years ago
8 years ago
8 years ago
8 years ago
9 years ago
8 years ago
9 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 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.0, maximum-scale=1.0">
  5. <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
  6. <meta name="author" content="{{ site.author.name }}" />
  7. <meta name="description" content="{{ site.description }}">
  8. <link rel="alternate" type="application/rss+xml" title="{{ site.title }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
  9. {% if layout.common-ext-css %}
  10. {% for css in layout.common-ext-css %}
  11. <link rel="stylesheet" href="{{ css }}" />
  12. {% endfor %}
  13. {% endif %}
  14. {% if layout.common-css %}
  15. {% for css in layout.common-css %}
  16. <link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
  17. {% endfor %}
  18. {% endif %}
  19. {% if layout.common-googlefonts %}
  20. {% for font in layout.common-googlefonts %}
  21. <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
  22. {% endfor %}
  23. {% endif %}
  24. {% if page.ext-css %}
  25. {% for css in page.ext-css %}
  26. <link rel="stylesheet" href="{{ css }}" />
  27. {% endfor %}
  28. {% endif %}
  29. {% if page.css %}
  30. {% for css in page.css %}
  31. <link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
  32. {% endfor %}
  33. {% endif %}
  34. {% if page.googlefonts %}
  35. {% for font in page.googlefonts %}
  36. <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
  37. {% endfor %}
  38. {% endif %}
  39. <!-- Facebook OpenGraph tags -->
  40. {% if page.meta-title %}
  41. <meta property="og:title" content="{{ page.meta-title }}" />
  42. {% elsif page.title %}
  43. <meta property="og:title" content="{{ page.title }}" />
  44. {% else %}
  45. <meta property="og:title" content="{{ site.title }}" />
  46. {% endif %}
  47. <meta property="og:type" content="website" />
  48. {% if page.id %}
  49. <meta property="og:url" content="{{ site.url }}{{ page.url }}" />
  50. {% else %}
  51. <meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
  52. {% endif %}
  53. {% if page.share-img %}
  54. <meta property="og:image" content="{{ page.share-img }}" />
  55. {% else %}
  56. <meta property="og:image" content="{{ site.url }}{{ site.avatar }}" />
  57. {% endif %}
  58. <!-- Twitter summary cards -->
  59. <meta name="twitter:card" content="summary" />
  60. <meta name="twitter:site" content="@{{ site.author.twitter }}" />
  61. <meta name="twitter:creator" content="@{{ site.author.twitter }}" />
  62. <meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
  63. <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}" />
  64. {% if page.share-img %}
  65. <meta name="twitter:image" content="{{ page.share-img }}" />
  66. {% elsif site.avatar %}
  67. <meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" />
  68. {% endif %}
  69. </head>