mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
refactor: remove site config option prefer_datetime_locale
This commit is contained in:
@@ -6,11 +6,6 @@
|
||||
<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">
|
||||
|
||||
<!-- Allow having a localized datetime different from the appearance language -->
|
||||
{% if site.prefer_datetime_locale %}
|
||||
<meta name="prefer-datetime-locale" content="{{ site.prefer_datetime_locale }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.layout == 'home' or page.layout == 'post' %}
|
||||
|
||||
{% if site.google_analytics.pv.proxy_endpoint %}
|
||||
|
||||
@@ -29,11 +29,7 @@
|
||||
or page.layout == 'category'
|
||||
or page.layout == 'tag' %}
|
||||
|
||||
{% if site.prefer_datetime_locale %}
|
||||
{% assign locale = site.prefer_datetime_locale | downcase %}
|
||||
{% else %}
|
||||
{% assign locale = site.lang | split: '-' | first %}
|
||||
{% endif %}
|
||||
{% assign locale = site.lang | split: '-' | first %}
|
||||
|
||||
{% assign _urls = site.data.assets[origin].dayjs.js.common
|
||||
| append: ',' | append: site.data.assets[origin].dayjs.js.locale
|
||||
|
||||
Reference in New Issue
Block a user