1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

refactor: remove site config option prefer_datetime_locale

This commit is contained in:
Cotes Chung
2022-10-19 03:47:48 +08:00
parent f904e8cd48
commit 6852ceb280
12 changed files with 11 additions and 23 deletions

View File

@@ -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