Last active
July 13, 2020 08:54
-
-
Save lukas-h/4765166053040d59e51f888118333b0c to your computer and use it in GitHub Desktop.
AMP jekyll include head
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> | |
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | |
<link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url }}" /> | |
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | |
<meta name="robots" content="index,follow"> | |
{% if page.} | |
{% if page.author %} | |
<meta name="author" content="{{ page.author }}"> | |
{% endif %} | |
<meta itemprop="name" content="{{ site.title }}"> | |
<meta name="theme-color" content="#D32F2F"> | |
<meta property="og:url" content="{{ site.url }}{{ site.baseurl }}{{ page.url }}" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" /> | |
<meta property="og:description" content="{{ site.description }}" /> | |
<meta property="og:image" content="{{ site.url }}{{ site.baseurl }}/logo.jpg" /> | |
<meta property="og:image:type" content="image/png" /> | |
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:site" content="{% if site.twitter_username %}@{{ site.twitter_username }}{% else %} "lukashimsel" {% endif %}" /> | |
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" /> | |
<meta name="twitter:description" content="{{ site.description }}" /> | |
<meta name="twitter:image" content="{{ site.url }}{{ site.baseurl }}/logo.jpg" /> | |
<link rel="shortcut icon" href="{{ "/favicon.png" | prepend: site.baseurl }}"> | |
<style amp-custom> | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v13/v0SdcGFAl2aezM9Vq_aFTQ.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Bahiana'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Bahiana Regular'), local('Bahiana-Regular'), url(https://fonts.gstatic.com/s/bahiana/v1/iMLVTDVRUIucf97aNHdQug.ttf) format('truetype'); | |
} | |
html { | |
font-size: 62.5% | |
} | |
body { | |
font-size: 1.5rem; | |
line-height: 1.6; | |
font-weight: 400; | |
font-family: "Lato", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
color: #222 | |
} | |
/* Alle CSS Rules für die Seite */ | |
</style> | |
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-gist" src="https://cdn.ampproject.org/v0/amp-gist-0.1.js"></script> | |
{% if page.custom_elements %}{{ page.custom_elements }}{% endif %} | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment