|
23 | 23 | {%- if file_exists.size != 0 -%} |
24 | 24 | <a class="page-link" href="/{{- page.lang -}}/docs/index.html">{%- include t.html key="views.navigation.docs" -%}</a> |
25 | 25 | {%- else -%} |
26 | | - <a class="page-link" href="/{{- site.lang -}}/docs/index.html">{%- include t.html key="views.navigation.docs" lang=site.lang -%}</a> |
| 26 | + <a class="page-link" href="/{{- site.lang -}}/docs/index.html">{%- include t.html key="views.navigation.docs" -%}</a> |
27 | 27 | {%- endif -%} |
28 | 28 |
|
29 | 29 | {%- assign path = page.lang | append: "/posts/index.md" -%} |
30 | 30 | {%- assign file_exists = site.html_pages | where: "path", path -%} |
31 | 31 | {%- if file_exists.size != 0 -%} |
32 | 32 | <a class="page-link" href="/{{- page.lang -}}/posts/index.html">{%- include t.html key="views.navigation.posts" -%}</a> |
33 | 33 | {%- else -%} |
34 | | - <a class="page-link" href="/{{- site.lang -}}/posts/index.html">{%- include t.html key="views.navigation.posts" lang=site.lang -%}</a> |
| 34 | + <a class="page-link" href="/{{- site.lang -}}/posts/index.html">{%- include t.html key="views.navigation.posts" -%}</a> |
35 | 35 | {%- endif -%} |
36 | 36 |
|
37 | 37 | <a class="page-link" href="https://packages.termux.dev">{%- include t.html key="views.navigation.packages" -%}</a> |
|
41 | 41 | {%- if file_exists.size != 0 -%} |
42 | 42 | <a class="page-link" href="/{{- page.lang -}}/donate">{%- include t.html key="views.navigation.donate" -%}</a> |
43 | 43 | {%- else -%} |
44 | | - <a class="page-link" href="/{{- site.lang -}}/donate">{%- include t.html key="views.navigation.donate" lang=site.lang -%}</a> |
| 44 | + <a class="page-link" href="/{{- site.lang -}}/donate">{%- include t.html key="views.navigation.donate" -%}</a> |
45 | 45 | {%- endif -%} |
46 | 46 |
|
47 | 47 | {%- assign path = page.lang | append: "/security.md" -%} |
48 | 48 | {%- assign file_exists = site.html_pages | where: "path", path -%} |
49 | 49 | {%- if file_exists.size != 0 -%} |
50 | 50 | <a class="page-link" href="/{{- page.lang -}}/security">{%- include t.html key="views.navigation.security" -%}</a> |
51 | 51 | {%- else -%} |
52 | | - <a class="page-link" href="/{{- site.lang -}}/security">{%- include t.html key="views.navigation.security" lang=site.lang -%}</a> |
| 52 | + <a class="page-link" href="/{{- site.lang -}}/security">{%- include t.html key="views.navigation.security" -%}</a> |
53 | 53 | {%- endif -%} |
54 | 54 |
|
55 | 55 | {%- assign path = page.lang | append: "/privacy-policy.md" -%} |
56 | 56 | {%- assign file_exists = site.html_pages | where: "path", path -%} |
57 | 57 | {%- if file_exists.size != 0 -%} |
58 | 58 | <a class="page-link" href="/{{- page.lang -}}/privacy-policy">{%- include t.html key="views.navigation.privacy_policy" -%}</a> |
59 | 59 | {%- else -%} |
60 | | - <a class="page-link" href="/{{- site.lang -}}/privacy-policy">{%- include t.html key="views.navigation.privacy_policy" lang=site.lang -%}</a> |
| 60 | + <a class="page-link" href="/{{- site.lang -}}/privacy-policy">{%- include t.html key="views.navigation.privacy_policy" -%}</a> |
61 | 61 | {%- endif -%} |
62 | 62 |
|
63 | 63 | {%- if page.page_ref and page.lang -%} |
|
0 commit comments