Skip to content

Commit 879bfa5

Browse files
committed
* 'master' of https://github.com/dainmiller/dainmiller.github.io: Update _config.yml docs: update timezone picker reference (cotes2020#2518) feat: add support for embed spotify (cotes2020#2515) fix: avoid unconfigured social options in sidebar (cotes2020#2507) ci: change filter script to ESM format style: change css color functions to use modern notation ci: migrate eslint and stylelint from codacy to gh-actions style: unify quote style in rollup config chore: complete ESLint v9 configuration fix: resolve discrepancy in lqip between post and main page (cotes2020#2453) fix: correct GoatCounter pageviews extraction (cotes2020#2420) feat(i18n): add locale files for some rtl languages (cotes2020#2415) feat(i18n): add Danish locale (cotes2020#2410) # Conflicts: # .github/workflows/pr-filter.yml # .github/workflows/scripts/pr-filter.js # _config.yml # _posts/2019-08-08-write-a-new-post.md
2 parents e96f1cb + c9c27ce commit 879bfa5

File tree

25 files changed

+671
-103
lines changed

25 files changed

+671
-103
lines changed

.github/workflows/lint-js.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint JS
2+
3+
on:
4+
push:
5+
paths:
6+
- "_javascript/**/*.js"
7+
- ".github/workflows/scripts/**/*.js"
8+
- "*.js"
9+
pull_request:
10+
paths:
11+
- "_javascript/**/*.js"
12+
- ".github/workflows/scripts/*.js"
13+
- "*.js"
14+
15+
jobs:
16+
lint-js:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
25+
26+
- name: Install Dependencies
27+
run: npm i
28+
29+
- name: Lint JS
30+
run: npm run lint:js

.github/workflows/lint-scss.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint SCSS
2+
3+
on:
4+
push:
5+
paths:
6+
- "_sass/**/*.scss"
7+
pull_request:
8+
paths:
9+
- "_sass/**/*.scss"
10+
11+
jobs:
12+
lint-scss:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
22+
- name: Install Dependencies
23+
run: npm i
24+
25+
- name: Lint SCSS
26+
run: npm run lint:scss

.stylelintrc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
"property-no-vendor-prefix": null,
99
"selector-no-vendor-prefix": null,
1010
"value-no-vendor-prefix": null,
11-
"color-function-notation": "legacy",
12-
"alpha-value-notation": "number",
1311
"selector-not-notation": "simple",
1412
"color-hex-length": "long",
1513
"declaration-block-single-line-max-declarations": 3,

_data/locales/da-DK.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# The layout text of site
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: Opslag
7+
category: Kategori
8+
tag: Tag
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: Hjem
14+
categories: Kategorier
15+
tags: Tags
16+
archives: Arkiv
17+
about: Om siden
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: søg
22+
cancel: Afbryd
23+
no_results: Ups! Ingen resultater fundet.
24+
25+
panel:
26+
lastmod: Senest opdateret
27+
trending_tags: Populære tags
28+
toc: Indhold
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: Dette opslag er licenseret under :LICENSE_NAME af forfatteren.
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: Nogle rettigheder forbeholdes.
39+
verbose: >-
40+
Medmindre andet er angivet, er opslag på denne side beskyttet
41+
under Creative Commons Attribution 4.0 International (CC BY 4.0) licensen af forfatteren.
42+
43+
# meta: Using the :THEME theme for :PLATFORM.
44+
45+
not_found:
46+
statement: Beklager, vi har malpaceret denne URL, eller den peger på et sted, som ikke findes.
47+
48+
notification:
49+
update_found: En ny version af indholdet er fundet!
50+
update: Opdater
51+
52+
# ----- Posts related labels -----
53+
54+
post:
55+
written_by: Af
56+
posted: Udgivet
57+
updated: Opdateret
58+
words: ord
59+
pageview_measure: visninger
60+
read_time:
61+
unit: min
62+
prompt: læsetid
63+
relate_posts: Læs videre
64+
share: Del
65+
button:
66+
next: Nyere
67+
previous: Ældre
68+
copy_code:
69+
succeed: Kopieret!
70+
share_link:
71+
title: Kopier link
72+
succeed: Link kopieret!
73+
74+
# Date time format.
75+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76+
df:
77+
post:
78+
strftime: "%Y/%m/%d"
79+
dayjs: "YYYY/MM/DD"
80+
81+
# categories page
82+
categories:
83+
category_measure:
84+
singular: kategori
85+
plural: kategorier
86+
post_measure: opslag

_data/locales/dv‑MV.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# The layout text of site in Dhivehi (Maldives)
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: ޕޯސްޓް
7+
category: ނަތީޖާ
8+
tag: ޓެގް
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: ހުންނަ
14+
categories: ނަތީޖާތައް
15+
tags: ޓެގްތައް
16+
archives: އާރޗިވްސް
17+
about: އިންސާން
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: ސާރޗް
22+
cancel: ކެންސަލް
23+
no_results: އޮޕްސް! އެއްވެސް ނުފެނުނީ.
24+
25+
panel:
26+
lastmod: އާދަމާ އޮޕްޑޭޓްކުރި
27+
trending_tags: މަރާހު ޓެގްތައް
28+
toc: ކޮންޓެންސް
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: މި ޕޯސްޓް :LICENSE_NAME އިން ލައިސަންސްކުރާ ނުވަތަ މުޤައްރާއަށް.
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: އެކީ ބާރަށް ހުށަހަޅާ.
39+
verbose: >-
40+
އަދި އެ ރަނގަޅުގައި ނުލާހެވެސް، މި ސައިޓުގެ ޕޯސްޓްތައް
41+
މުޤައްރާއަށް Creative Commons Attribution 4.0 International (CC BY 4.0) ލައިސަންސްކުރަނީ.
42+
43+
meta: :PLATFORM އަށް :THEME ތީމް ބަލާލާށެވެ.
44+
45+
not_found:
46+
statement: ސޯރީ، މި ޔޫ.އާރއެލް މަށެވެއްނެ ނުވަތަ އެކަމެއް ނުވެއެވެ.
47+
48+
notification:
49+
update_found: ޔޫ ވާރޝަން ހުރިހާ.
50+
update: އޮޕްޑޭޓް
51+
52+
# ----- Posts related labels -----
53+
54+
post:
55+
written_by: ލެކްއޯލް
56+
posted: ޕޯސްޓްކުރެވި
57+
updated: އޮޕްޑޭޓްކުރެވި
58+
words: ބަސް
59+
pageview_measure: ބަނޑުކުރާ
60+
read_time:
61+
unit: މިނެޓް
62+
prompt: އިސްކާރު
63+
relate_posts: އެއްޗެހި ފަހުރަށްދަން
64+
share: ސެއާރް
65+
button:
66+
next: އަދާވަނަ
67+
previous: ކޮނޯނި
68+
copy_code:
69+
succeed: ކޮޕީ ކުރެވި!
70+
share_link:
71+
title: ލިންކް ކޮޕީ ކުރު
72+
succeed: ލިންކް ހަދަންކުރެވި!
73+
74+
# Date time format.
75+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76+
df:
77+
post:
78+
strftime: "%b %e, %Y"
79+
dayjs: "ll"
80+
archives:
81+
strftime: "%b"
82+
dayjs: "MMM"
83+
84+
categories:
85+
category_measure:
86+
singular: ނަތީޖާ
87+
plural: ނަތީޖާތައް
88+
post_measure:
89+
singular: ޕޯސްޓް
90+
plural: ޕޯސްޓްތައް

_data/locales/fa-IR.yaml renamed to _data/locales/fa-IR.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ copyright:
3737
# Displayed in the footer
3838
brief: برخی حقوق محفوظ است.
3939
verbose: >-
40-
مگر اینکه خلاف آن ذکر شده باشد، پست‌های وبلاگ در این سایت
40+
به‌جز مواردی که خلاف آن ذکر شده باشد، محتوای پست‌های این وبلاگ
4141
تحت مجوز Creative Commons Attribution 4.0 International (CC BY 4.0) توسط نویسنده منتشر شده‌اند.
4242
43-
meta: با استفاده از :PLATFORM قالب :THEME
43+
meta: با استفاده از قالب :THEME برای :PLATFORM
4444

4545
not_found:
4646
statement: متأسفیم، لینک زیر معتبر نیست یا به صفحه‌ای که وجود ندارد اشاره می‌کند.
@@ -55,11 +55,11 @@ post:
5555
written_by: نوشته شده توسط
5656
posted: منتشر شده
5757
updated: به‌روزرسانی شده
58-
words: کلمات
59-
pageview_measure: بازدیدها
58+
words: کلمه
59+
pageview_measure: بازدید
6060
read_time:
61-
unit: دقیقه
62-
prompt: زمان مطالعه
61+
unit: "دقیقه "
62+
prompt: " زمان مطالعه"
6363
relate_posts: بیشتر بخوانید
6464
share: اشتراک‌گذاری
6565
button:
@@ -85,7 +85,7 @@ df:
8585
categories:
8686
category_measure:
8787
singular: دسته‌بندی
88-
plural: دسته‌بندی‌ها
88+
plural: دسته‌بندی‌
8989
post_measure:
9090
singular: پست
91-
plural: پست‌ها
91+
plural: پست‌

_data/locales/ku-IQ.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# The layout text of site in Kurdish (Sorani)
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: بابەت
7+
category: هاوپۆل
8+
tag: تاگ
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: سەرەکی
14+
categories: هاوپۆلەکان
15+
tags: تاگەکان
16+
archives: ئەرشیف
17+
about: دەربارە
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: گەڕان
22+
cancel: هەڵوەشاندنەوە
23+
no_results: ببوورە! هیچ ئەنجامێک نەدۆزرایەوە.
24+
25+
panel:
26+
lastmod: دوایین نوێکردنەوەکان
27+
trending_tags: تاگە باوەکان
28+
toc: ناوەڕۆک
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: ئەم بابەتە لەلایەن نووسەرەوە بە مۆڵەتی :LICENSE_NAME بڵاوکراوەتەوە.
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: هەندێک مافی پارێزراوە.
39+
verbose: >-
40+
تەنها لەو شوێنانەی کە بە پێچەوانەوە ئاماژەی پێدراوە، بابەتەکانی بڵۆگ لەم سایتەدا
41+
لەژێر مۆڵەتی Creative Commons Attribution 4.0 International (CC BY 4.0) لەلایەن نووسەرەوە مۆڵەتیان پێدراوە.
42+
43+
meta: بە بەکارهێنانی :PLATFORM لەگەڵ ڕووکاری :THEME
44+
45+
not_found:
46+
statement: ببوورە، ئەم بەستەرە نادۆزرێتەوە یان ئاماژە بە شتێک دەکات کە بوونی نییە.
47+
48+
notification:
49+
update_found: وەشانێکی نوێی ناوەڕۆک بەردەستە.
50+
update: نوێکردنەوە
51+
52+
# ----- Posts related labels -----
53+
54+
post:
55+
written_by: نووسەر
56+
posted: بڵاوکراوەتەوە
57+
updated: نوێکراوەتەوە
58+
words: وشە
59+
pageview_measure: بینین
60+
read_time:
61+
unit: خولەک
62+
prompt: خوێندنەوە
63+
relate_posts: بابەتی پەیوەندیدار
64+
share: بڵاوکردنەوە
65+
button:
66+
next: نوێتر
67+
previous: کۆنتر
68+
copy_code:
69+
succeed: کۆپی کرا!
70+
share_link:
71+
title: کۆپی بەستەر
72+
succeed: بەستەر بە سەرکەوتوویی کۆپی کرا!
73+
74+
# Date time format.
75+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76+
df:
77+
post:
78+
strftime: "%d %b, %Y"
79+
dayjs: "DD MMM, YYYY"
80+
archives:
81+
strftime: "%b"
82+
dayjs: "MMM"
83+
84+
# categories page
85+
categories:
86+
category_measure:
87+
singular: هاوپۆل
88+
plural: هاوپۆل
89+
post_measure:
90+
singular: بابەت
91+
plural: بابەت

0 commit comments

Comments
 (0)