mirror of
https://github.com/github/choosealicense.com
synced 2025-01-02 18:11:45 +01:00
add jekyll-seo-tag
This commit is contained in:
parent
b2f7559002
commit
2db11a04bb
1
Gemfile
1
Gemfile
@ -2,6 +2,7 @@ source "https://rubygems.org"
|
||||
ruby File.read(".ruby-version").strip
|
||||
|
||||
gem "github-pages"
|
||||
gem "jekyll-seo-tag"
|
||||
|
||||
group :test do
|
||||
gem "html-proofer"
|
||||
|
@ -40,6 +40,7 @@ exclude:
|
||||
gems:
|
||||
- jekyll-sitemap
|
||||
- jekyll-redirect-from
|
||||
- jekyll-seo-tag
|
||||
|
||||
sass:
|
||||
sass_dir: _sass
|
||||
|
@ -13,7 +13,7 @@
|
||||
<![endif]-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
|
||||
{% include seo.html %}
|
||||
{% seo %}
|
||||
</head>
|
||||
<body class="{{ page.layout }}{% if page.class %} {{ page.class }}{% endif %}">
|
||||
<div class="container">
|
||||
|
@ -1,30 +0,0 @@
|
||||
{% 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.description | 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 }}"/>
|
||||
<title itemprop='name'>{{ site.title }}</title>
|
||||
|
||||
<meta name="description" content="{{ seo_description }}">
|
||||
<meta property='og:description' content="{{ seo_description }}"/>
|
||||
|
||||
<link rel="canonical" href="{{ site.github.url }}{{ page.url }}" itemprop="url"/>
|
||||
<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 }}" />
|
||||
<!-- /seo -->
|
Loading…
x
Reference in New Issue
Block a user