Skip to content

Commit eeaa011

Browse files
committed
Merge branch 'v4' of https://github.com/jackyzha0/quartz into v4
2 parents ea4ae99 + 6d49d97 commit eeaa011

File tree

4 files changed

+93
-8
lines changed

4 files changed

+93
-8
lines changed

quartz/components/styles/contentMeta.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.content-meta {
22
margin-top: 0;
3-
color: var(--gray);
3+
color: var(--darkgray);
44

55
&[show-comma="true"] {
66
> *:not(:last-child) {

quartz/i18n/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import th from "./locales/th-TH"
2626
import lt from "./locales/lt-LT"
2727
import fi from "./locales/fi-FI"
2828
import no from "./locales/nb-NO"
29+
import id from "./locales/id-ID"
2930

3031
export const TRANSLATIONS = {
3132
"en-US": enUs,
@@ -76,6 +77,7 @@ export const TRANSLATIONS = {
7677
"lt-LT": lt,
7778
"fi-FI": fi,
7879
"nb-NO": no,
80+
"id-ID": id,
7981
} as const
8082

8183
export const defaultTranslation = "en-US"

quartz/i18n/locales/id-ID.ts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import { Translation } from "./definition"
2+
3+
export default {
4+
propertyDefaults: {
5+
title: "Tanpa Judul",
6+
description: "Tidak ada deskripsi",
7+
},
8+
components: {
9+
callout: {
10+
note: "Catatan",
11+
abstract: "Abstrak",
12+
info: "Info",
13+
todo: "Daftar Tugas",
14+
tip: "Tips",
15+
success: "Berhasil",
16+
question: "Pertanyaan",
17+
warning: "Peringatan",
18+
failure: "Gagal",
19+
danger: "Bahaya",
20+
bug: "Bug",
21+
example: "Contoh",
22+
quote: "Kutipan",
23+
},
24+
backlinks: {
25+
title: "Tautan Balik",
26+
noBacklinksFound: "Tidak ada tautan balik ditemukan",
27+
},
28+
themeToggle: {
29+
lightMode: "Mode Terang",
30+
darkMode: "Mode Gelap",
31+
},
32+
readerMode: {
33+
title: "Mode Pembaca",
34+
},
35+
explorer: {
36+
title: "Penjelajah",
37+
},
38+
footer: {
39+
createdWith: "Dibuat dengan",
40+
},
41+
graph: {
42+
title: "Tampilan Grafik",
43+
},
44+
recentNotes: {
45+
title: "Catatan Terbaru",
46+
seeRemainingMore: ({ remaining }) => `Lihat ${remaining} lagi →`,
47+
},
48+
transcludes: {
49+
transcludeOf: ({ targetSlug }) => `Transklusi dari ${targetSlug}`,
50+
linkToOriginal: "Tautan ke asli",
51+
},
52+
search: {
53+
title: "Cari",
54+
searchBarPlaceholder: "Cari sesuatu",
55+
},
56+
tableOfContents: {
57+
title: "Daftar Isi",
58+
},
59+
contentMeta: {
60+
readingTime: ({ minutes }) => `${minutes} menit baca`,
61+
},
62+
},
63+
pages: {
64+
rss: {
65+
recentNotes: "Catatan terbaru",
66+
lastFewNotes: ({ count }) => `${count} catatan terakhir`,
67+
},
68+
error: {
69+
title: "Tidak Ditemukan",
70+
notFound: "Halaman ini bersifat privat atau tidak ada.",
71+
home: "Kembali ke Beranda",
72+
},
73+
folderContent: {
74+
folder: "Folder",
75+
itemsUnderFolder: ({ count }) =>
76+
count === 1 ? "1 item di bawah folder ini." : `${count} item di bawah folder ini.`,
77+
},
78+
tagContent: {
79+
tag: "Tag",
80+
tagIndex: "Indeks Tag",
81+
itemsUnderTag: ({ count }) =>
82+
count === 1 ? "1 item dengan tag ini." : `${count} item dengan tag ini.`,
83+
showingFirst: ({ count }) => `Menampilkan ${count} tag pertama.`,
84+
totalTags: ({ count }) => `Ditemukan total ${count} tag.`,
85+
},
86+
},
87+
} as const satisfies Translation

quartz/plugins/emitters/componentResources.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,10 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso
159159
posthog.init('${cfg.analytics.apiKey}', {
160160
api_host: '${cfg.analytics.host ?? "https://app.posthog.com"}',
161161
capture_pageview: false,
162-
})\`
163-
posthogScript.onload = () => {
162+
});
163+
document.addEventListener('nav', () => {
164164
posthog.capture('$pageview', { path: location.pathname });
165-
166-
document.addEventListener('nav', () => {
167-
posthog.capture('$pageview', { path: location.pathname });
168-
});
169-
};
165+
})\`
170166
171167
document.head.appendChild(posthogScript);
172168
`)

0 commit comments

Comments
 (0)