head.html 1.4 KB

1234567891011121314151617181920212223
  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. <meta property="og:url" content="{{ page.url | replace:'index.html','' | absolute_url }}" />
  6. <meta property="og:site_name" content="{{ site.title }}"/>
  7. <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
  8. <meta property="og:image" content="{{ '/static/og_image.png' | absolute_url }}" />
  9. <meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
  10. <link rel="stylesheet" href="{{ '/css/main.css' }}" media="screen">
  11. <link rel="icon" href="{{ '/static/favicon.png' }}" type="image/x-icon">
  12. {% if site.searchconfig %}
  13. <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
  14. {% endif %}
  15. <title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
  16. <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
  17. <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
  18. <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}" />
  19. </head>