mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
add seo include
This commit is contained in:
parent
df6848b338
commit
4f54fc5c07
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: ChooseALicense.com
|
||||
title: Choose a License
|
||||
relative_permalinks: false
|
||||
markdown: kramdown
|
||||
url: "http://choosealicense.com"
|
||||
@ -43,3 +43,7 @@ gems:
|
||||
sass:
|
||||
sass_dir: _sass
|
||||
style: :compressed
|
||||
|
||||
twitter:
|
||||
username: "@github"
|
||||
account_id: "13334762"
|
||||
|
@ -3,8 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% if page.title %}{{ page.title | markdownify | strip_html | strip_newlines }} - {% endif %}{{ site.title}}</title>
|
||||
{% if page.description %}<meta name="description" content="{{ page.description | strip_html | strip_newlines }}">{% endif %}
|
||||
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Chivo:900">
|
||||
<link rel="stylesheet" href="/assets/css/application.css?v={{ site.github.build_revision }}">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
@ -13,6 +12,8 @@
|
||||
<script src="/assets/vendor/selectivizr/selectivizr.js"></script>
|
||||
<![endif]-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
|
||||
{% include seo.html %}
|
||||
</head>
|
||||
<body class="{{ page.layout }}{% if page.class %} {{ page.class }}{% endif %}">
|
||||
<div class="container">
|
||||
|
31
_includes/seo.html
Normal file
31
_includes/seo.html
Normal file
@ -0,0 +1,31 @@
|
||||
{% 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 %}
|
||||
{% assign seo_description = site.tagline | strip_html | strip_newlines %}
|
||||
{% endif %}
|
||||
|
||||
<!-- le seo -->
|
||||
<title>{{ seo_title }}</title>
|
||||
<meta property="og:title" content="{{ seo_title }}"/>
|
||||
<meta property="og:site_name" content="{{ site.title }}"/>
|
||||
|
||||
<meta name="description" content="{{ seo_description }}">
|
||||
<meta property='og:description' content="{{ seo_description }}"/>
|
||||
|
||||
<link rel="canonical" href="{{ site.github.url }}{{ page.url }}"/>
|
||||
<meta property='og:url' content='{{ site.github.url }}{{ page.url }}'/>
|
||||
<meta property='og:locale' content='en_us'/>
|
||||
|
||||
<meta property="twitter:account_id" content="{{ site.twitter.account_id }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:title" content="{{ seo_title }}" />
|
||||
<meta property="twitter:description" content="{{ seo_description }}" />
|
||||
<meta property="twitter:site" content="{{ site.twitter.username }}" />
|
||||
<meta property="twitter:creator" content="{{ site.twitter.username }}" />
|
||||
<!-- /seo -->
|
@ -72,7 +72,7 @@ strong {
|
||||
}
|
||||
|
||||
.home h1 {
|
||||
font-size: 63px;
|
||||
font-size: 60px;
|
||||
}
|
||||
|
||||
.home h2 {
|
||||
|
@ -2,7 +2,7 @@
|
||||
layout: default
|
||||
class: home
|
||||
hide_breadcrumbs: true
|
||||
title: Choosing an OSS license doesn’t need to be scary
|
||||
title: Choosing an open source license doesn’t need to be scary
|
||||
description: A site to provide non-judgmental guidance on choosing a license for your open source project
|
||||
permalink: /
|
||||
---
|
||||
|
Loading…
x
Reference in New Issue
Block a user