|
| 1 | +<meta charset="utf-8" /> |
| 2 | +<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 3 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 4 | +<link rel="icon" href="{{ "/assets/images/favicon.ico" | relative_url }}" type="image/x-icon" /> |
| 5 | +<meta name="msapplication-TileColor" content="#1a1919"> |
| 6 | +<meta name="msapplication-TileImage" content="https://cdn-shop.adafruit.com/static/mstile-144x144.png" /> |
| 7 | +<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> |
| 8 | +<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | |
| 9 | + strip_html | strip_newlines | truncate: 160 }}{% else |
| 10 | + %}{{ site.description }}{% endif %}" /> |
| 11 | + |
| 12 | +<!-- Twitter and Open Graph cards --> |
| 13 | +<meta name="twitter:site" content="@{{ site.twitter_username }}" /> |
| 14 | +<meta property="og:url" content="{{ page.url | absolute_url }}" /> |
| 15 | +{% if page.title %} |
| 16 | +<meta property="og:title" content="{{ site.title | append: ' - ' | append: page.title }}" /> |
| 17 | +{% else %} |
| 18 | +<meta property="og:title" content="{{ site.title }}" /> |
| 19 | +{% endif %} |
| 20 | + |
| 21 | +{% if page.excerpt %} |
| 22 | +<meta property="og:description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 300 }}" /> |
| 23 | +{% else %} |
| 24 | +<meta property="og:description" content="{{ site.description }}" /> |
| 25 | +{% endif %} |
| 26 | + |
| 27 | +{% if page.board_image %} |
| 28 | +<meta name="twitter:card" content="summary_large_image" /> |
| 29 | +<meta property="og:image" content="{{ "/assets/images/boards/large/" | append: page.board_image | absolute_url }}" /> |
| 30 | +{% else %} |
| 31 | +<meta name="twitter:card" content="summary" /> |
| 32 | +<meta property="og:image" content="{{ site.headline_image }}" /> |
| 33 | +{% endif %} |
| 34 | +<meta property="og:type" content="website" /> |
0 commit comments