mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-05 02:28:56 +00:00

* Migrate the non blog posts to use no domain * Update demo links * Remove Zanzito references from owntracks docs
40 lines
2.9 KiB
HTML
40 lines
2.9 KiB
HTML
{% capture fb_description %}{% if page.description %}{{ page.description }}{% endif %}{% endcapture %}
|
|
{% capture description %}{% if page.description %}{{ page.description }}{% else site.description %}{{ site.description }}{% endif %}{% endcapture %}
|
|
{% capture social_image %}{% if page.og_image %}{{ page.og_image | prepend: site.url }}{% else %}https://www.home-assistant.io/images/default-social.png{% endif %}{% endcapture %}
|
|
<!doctype html>
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
|
|
<meta name="author" content="{% if page.author %}{{ page.author }}{% else %}{{ site.author }}{% endif %}">
|
|
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
|
|
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="canonical" href="{{ page.url | canonical_url }}">
|
|
|
|
<meta property="fb:app_id" content="{{ site.social.facebook.app_id }}">
|
|
<meta property="og:title" content="{% if post.title %}{{ post.title }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
<meta property="og:site_name" content="{{ site.title }}">
|
|
<meta property="og:url" content="{{ page.url | canonical_url }}">
|
|
<meta property="og:type" content="{% if page.categories %}article{% else %}website{% endif %}">
|
|
<meta property="og:description" content="{{ fb_description | truncate:200 }}">
|
|
<meta property="og:image" content="{{ social_image }}">
|
|
{% comment %}{% if page.og_image %}summary_large_image{% else %}summary{% endif %}{% endcomment %}
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="@{{ site.social.twitter.account }}">
|
|
{% if page.author_twitter %}<meta name="twitter:creator" content="@{{ page.author_twitter }}">{% endif %}
|
|
<meta name="twitter:title" content="{% if post.title %}{{ post.title }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
<meta name="twitter:description" content="{{ fb_description | truncate:200 }}">
|
|
<meta name="twitter:image" content="{{ social_image }}">
|
|
|
|
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection, print" rel="stylesheet">
|
|
<link href="{{ root_url }}{{ site.subscribe_rss }}" rel="alternate" title="{{ site.title }}" type="application/atom+xml">
|
|
<link rel='shortcut icon' href='{{ root_url }}/images/favicon.ico' />
|
|
<link rel='icon' type='image/png' href='{{ root_url }}/images/favicon-192x192.png' sizes='192x192' />
|
|
</head>
|