Drop site config options `content_lang` & `outdated`

This commit is contained in:
Cotes Chung 2021-07-30 14:53:46 +08:00
parent 49dc866bd8
commit 57e8c6e594
5 changed files with 2 additions and 14 deletions

View File

@ -11,11 +11,6 @@ baseurl: ''
# Go to folder '_data/locales' to check the available language options # Go to folder '_data/locales' to check the available language options
lang: en 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 # Change to your timezone http://www.timezoneconverter.com/cgi-bin/findzone/findzone
timezone: Asia/Shanghai timezone: Asia/Shanghai
@ -173,6 +168,3 @@ jekyll-archives:
permalinks: permalinks:
tag: /tags/:name/ tag: /tags/:name/
category: /categories/:name/ category: /categories/:name/
# Outdated configuration warning
outdated: '-- Missing configuration options! --'

View File

@ -11,8 +11,6 @@
{% if site.data.locales[site.lang].copyright.brief %} {% if site.data.locales[site.lang].copyright.brief %}
<span data-toggle="tooltip" data-placement="top" <span data-toggle="tooltip" data-placement="top"
title="{{ site.data.locales[site.lang].copyright.verbose }}">{{ site.data.locales[site.lang].copyright.brief }}</span> 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 %} {% endif %}
</p> </p>
</div> </div>

View File

@ -11,7 +11,7 @@ layout: compress
{% endif %} {% endif %}
{% endcapture %} {% endcapture %}
<html lang="{{ site.content_lang | default: site.lang }}" {{ prefer_mode }}> <html lang="{{ site.lang | default: 'en' }}" {{ prefer_mode }}>
{% include head.html %} {% include head.html %}

View File

@ -96,8 +96,6 @@ layout: default
</a> </a>
{% endcapture %} {% endcapture %}
{{ site.data.locales[site.lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }} {{ site.data.locales[site.lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
{% else %}
<span class="text-muted small">{{ site.outdated }}</span>
{% endif %} {% endif %}
</div> </div>

View File

@ -15,7 +15,7 @@ permalink: /feed.xml
<uri>{{ "/" | absolute_url }}</uri> <uri>{{ "/" | absolute_url }}</uri>
</author> </author>
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/> <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 }}"/> href="{{ '/' | absolute_url }}"/>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator> <generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights> <rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>