mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-03-22 02:48:15 +00:00
- Rename `loadTooptip` to `loadTooltip` in tooltip-loader.js, components.js, and basic.js - Fix grammar: "This script make" → "This script makes" in search-display.js - Fix "HomgPage" → "HomePage" in post-paginator.html - Fix "CND URL" → "CDN URL" in media-url.html - Fix "locale-dateime.js" → "locale-datetime.js" in datetime.html - Fix "LaTex" → "LaTeX" in language-alias.html - Fix "exist <a> tag" → "existing <a> tag" in refactor-content.html - Fix "Archvies" → "Archives" in _archives.scss - Fix "underlinke" → "underline" in _syntax.scss
21 lines
577 B
HTML
21 lines
577 B
HTML
<!--
|
|
Date format snippet
|
|
See: ${JS_ROOT}/modules/components/locale-datetime.js
|
|
-->
|
|
|
|
{% assign df_strftime = site.data.locales[include.lang].df.post.strftime | default: '%d/%m/%Y' %}
|
|
{% assign df_dayjs = site.data.locales[include.lang].df.post.dayjs | default: 'DD/MM/YYYY' %}
|
|
|
|
<time
|
|
{% if include.class %}
|
|
class="{{ include.class }}"
|
|
{% endif %}
|
|
data-ts="{{ include.date | date: '%s' }}"
|
|
data-df="{{ df_dayjs }}"
|
|
{% if include.tooltip %}
|
|
data-bs-toggle="tooltip" data-bs-placement="bottom"
|
|
{% endif %}
|
|
>
|
|
{{ include.date | date: df_strftime }}
|
|
</time>
|