1
0
mirror of https://github.com/github/choosealicense.com synced 2024-07-08 19:29:34 +02:00
choosealicense.com/_includes/seo.html

31 lines
1.3 KiB
HTML
Raw Normal View History

2015-10-23 23:50:25 +02:00
{% if page.title %}
{% capture seo_title %}{{ page.title | markdownify | strip_html | strip_newlines }} - {{ site.title }}{% endcapture %}
{% else %}
{% assign seo_title = site.title %}
{% endif %}
{% if page.description %}
{% assign seo_description = page.description | strip_html | strip_newlines %}
{% else %}
2015-10-23 23:58:46 +02:00
{% assign seo_description = site.description | strip_html | strip_newlines %}
2015-10-23 23:50:25 +02:00
{% endif %}
<!-- le seo -->
<title>{{ seo_title }}</title>
<meta property="og:title" content="{{ seo_title }}"/>
<meta property="og:site_name" content="{{ site.title }}"/>
2015-10-24 00:12:39 +02:00
<title itemprop='name'>{{ site.title }}</title>
2015-10-23 23:50:25 +02:00
<meta name="description" content="{{ seo_description }}">
<meta property='og:description' content="{{ seo_description }}"/>
2015-10-24 00:12:39 +02:00
<link rel="canonical" href="{{ site.github.url }}{{ page.url }}" itemprop="url"/>
2015-10-23 23:50:25 +02:00
<meta property='og:url' content='{{ site.github.url }}{{ page.url }}'/>
<meta property='og:locale' content='en_us'/>
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ seo_title }}" />
<meta name="twitter:description" content="{{ seo_description }}" />
<meta name="twitter:site" content="{{ site.twitter.username }}" />
2015-10-23 23:50:25 +02:00
<!-- /seo -->