Updated seo-tag settings.

Although `tagline` hasn't been released yet.
This commit is contained in:
Cotes Chung 2020-01-09 02:48:57 +08:00
parent 53e01c1778
commit 6cef0829a8
5 changed files with 18 additions and 15 deletions

14
Gemfile
View file

@ -1,17 +1,17 @@
source 'https://rubygems.org'
source "https://rubygems.org"
gem 'jekyll', '>=3.8.6'
gem "jekyll", ">=3.8.6"
# Official Plugins
group :jekyll_plugins do
gem 'jekyll-paginate'
gem 'jekyll-redirect-from'
gem 'jekyll-seo-tag'
gem "jekyll-paginate"
gem "jekyll-redirect-from"
gem "jekyll-seo-tag", "~> 2.6.1"
end
group :test do
gem 'html-proofer'
gem "html-proofer"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

View file

@ -8,16 +8,19 @@
# jekyll-seo-tag settings https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
#--------------------------
title: Chirpy
title: Chirpy # the main title
description: 'A text-focused Jekyll theme.'
tagline: A text-focused Jekyll theme. # it will display as the sub-title
description: >- # used by seo meta and the atom feed
A minimal, portfolio, sidebar, bootstrap Jekyll theme with responsive web design and focuses on text presentation.
# Replace with your domain, e.g. 'https://username.github.io'
url: 'https://www.example.com'
url: 'protocol://domain'
author: your_full_name # change to your full name
avatar: /assets/img/sample/avatar.jpg # Support network resources.
avatar: /assets/img/sample/avatar.jpg # support internet resources
github:
username: github_username # change to your github username

View file

@ -7,6 +7,9 @@
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>
{%- if page.layout == "home" -%}
{{- site.title -}}
@ -14,8 +17,6 @@
{{ page.title }} | {{ site.title }}
{%- endif -%}
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% seo title=false %}

View file

@ -23,7 +23,7 @@
<div id="site-title">
<a href="{{ site.baseurl }}/">{{- site.title -}}</a>
</div>
<div id="site-subtitle" class="font-italic">{{ site.description }}</div>
<div id="site-subtitle" class="font-italic">{{- site.tagline -}}</div>
</div>
</div>

View file

@ -1,6 +1,5 @@
---
layout: home
title: Home
breadcrumb:
-
label: Posts