Drop site config options content_lang
& outdated
This commit is contained in:
parent
49dc866bd8
commit
57e8c6e594
5 changed files with 2 additions and 14 deletions
|
@ -11,11 +11,6 @@ baseurl: ''
|
|||
# Go to folder '_data/locales' to check the available language options
|
||||
lang: en
|
||||
|
||||
# The lang attribute of HTML › http://www.lingoes.net/en/translator/langcode.htm
|
||||
# We can specify a language different from the layout of the content.
|
||||
# If it is not assigned, the site will use the value of 'lang' instead.
|
||||
content_lang: ''
|
||||
|
||||
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
|
||||
timezone: Asia/Shanghai
|
||||
|
||||
|
@ -173,6 +168,3 @@ jekyll-archives:
|
|||
permalinks:
|
||||
tag: /tags/:name/
|
||||
category: /categories/:name/
|
||||
|
||||
# Outdated configuration warning
|
||||
outdated: '-- Missing configuration options! --'
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
{% if site.data.locales[site.lang].copyright.brief %}
|
||||
<span data-toggle="tooltip" data-placement="top"
|
||||
title="{{ site.data.locales[site.lang].copyright.verbose }}">{{ site.data.locales[site.lang].copyright.brief }}</span>
|
||||
{% else %}
|
||||
<span class="text-muted">{{ site.outdated }}</span>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@ layout: compress
|
|||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
<html lang="{{ site.content_lang | default: site.lang }}" {{ prefer_mode }}>
|
||||
<html lang="{{ site.lang | default: 'en' }}" {{ prefer_mode }}>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
|
|
|
@ -96,8 +96,6 @@ layout: default
|
|||
</a>
|
||||
{% endcapture %}
|
||||
{{ site.data.locales[site.lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
||||
{% else %}
|
||||
<span class="text-muted small">{{ site.outdated }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ permalink: /feed.xml
|
|||
<uri>{{ "/" | absolute_url }}</uri>
|
||||
</author>
|
||||
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
|
||||
<link rel="alternate" type="text/html" hreflang="{{ site.content_lang | default: site.lang }}"
|
||||
<link rel="alternate" type="text/html" hreflang="{{ site.lang | default: 'en' }}"
|
||||
href="{{ '/' | absolute_url }}"/>
|
||||
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
|
||||
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>
|
||||
|
|
Loading…
Reference in a new issue