Skip to content

Commit 120197a

Browse files
authored
build: apply language based on folder. (#1975)
* build: apply language based on folder. * i18n: remove lang tag * style: fix home style * fixup!: fix lang 404 page * re-add grid area * fix zh_ch * re add style changes
1 parent 61cfc19 commit 120197a

File tree

525 files changed

+56
-524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

525 files changed

+56
-524
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: ## This help
1616

1717
serve: ## Local server
1818
@echo "${BLUE}Starting expressjs.com at http://localhost:4000${RESET}"
19-
docker run -p 4000:4000 -p 35729:35729 -v $(DIR):/usr/src/app expressjs.com bundle exec jekyll serve --host 0.0.0.0 --incremental
19+
docker run -p 4000:4000 -p 35729:35729 -v $(DIR):/usr/src/app expressjs.com bundle exec jekyll serve --host 0.0.0.0
2020

2121
build: ## Build site
2222
@echo "${BLUE}Building site...${RESET}"

_config.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,61 @@ defaults:
1414
layout: "post"
1515
menu: blog
1616
lang: en
17+
-
18+
scope:
19+
path: "en"
20+
values:
21+
lang: en
22+
-
23+
scope:
24+
path: "index.md"
25+
values:
26+
lang: en
27+
-
28+
scope:
29+
path: "de"
30+
values:
31+
lang: de
32+
-
33+
scope:
34+
path: "es"
35+
values:
36+
lang: es
37+
-
38+
scope:
39+
path: "fr"
40+
values:
41+
lang: fr
42+
-
43+
scope:
44+
path: "it"
45+
values:
46+
lang: it
47+
-
48+
scope:
49+
path: "ja"
50+
values:
51+
lang: ja
52+
-
53+
scope:
54+
path: "ko"
55+
values:
56+
lang: ko
57+
-
58+
scope:
59+
path: "pt-br"
60+
values:
61+
lang: "pt-br"
62+
-
63+
scope:
64+
path: "zh-cn"
65+
values:
66+
lang: "zh-cn"
67+
-
68+
scope:
69+
path: "zh-tw"
70+
values:
71+
lang: "zh-tw"
1772

1873
announcement: true # Enable or disable the announcements.
1974

de/3x/api.md

Lines changed: 0 additions & 1 deletion

de/4x/api.md

Lines changed: 0 additions & 1 deletion

de/5x/api.md

Lines changed: 0 additions & 1 deletion

de/advanced/best-practice-performance.md

Lines changed: 0 additions & 1 deletion

de/advanced/best-practice-security.md

Lines changed: 0 additions & 1 deletion

de/advanced/developing-template-engines.md

Lines changed: 0 additions & 1 deletion

de/advanced/healthcheck-graceful-shutdown.md

Lines changed: 0 additions & 1 deletion

de/advanced/security-updates.md

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)