mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2026-11-15 17:50:05 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ff61cc074 |
No files matched your search
@@ -27,7 +27,7 @@ jobs:
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }}
|
||||
strategy:
|
||||
matrix:
|
||||
lang: [es, fr, he, it, ko, nl, ru, zh-Hant, zh-TW]
|
||||
lang: [es, fr, he, it, ja, nl, ru, zh-Hant, zh-TW]
|
||||
fail-fast: false
|
||||
uses: ./.github/workflows/build.yml
|
||||
with:
|
||||
|
||||
@@ -176,7 +176,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
lang: [en, es, fr, he, it, ko, nl, ru, zh-Hant]
|
||||
lang: [en, es, fr, he, it, ja, nl, ru, zh-Hant]
|
||||
|
||||
steps:
|
||||
- name: Download Repository
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
lang: [en, es, fr, he, it, ko, nl, ru, zh-Hant, zh-TW]
|
||||
lang: [en, es, fr, he, it, ja, nl, ru, zh-Hant, zh-TW]
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
||||
+4
-4
@@ -191,10 +191,10 @@ extra:
|
||||
link: /nl/
|
||||
lang: nl
|
||||
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f3-1f1f1.svg
|
||||
- name: 한국어
|
||||
link: /ko/
|
||||
lang: ko
|
||||
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f0-1f1f7.svg
|
||||
- name: 日本語
|
||||
link: /ja/
|
||||
lang: ja
|
||||
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1ef-1f1f5.svg
|
||||
- name: 中文 (繁體)
|
||||
link: /zh-hant/
|
||||
lang: zh-Hant
|
||||
|
||||
@@ -70,10 +70,10 @@ if [[ "$blog" == false ]]; then
|
||||
export BUILD_THEME_FONT_TEXT="Open Sans"
|
||||
fi
|
||||
|
||||
# Set font if Korean
|
||||
if [ "$language" == "ko" ]; then
|
||||
export BUILD_THEME_FONT_CODE="Noto Sans KR"
|
||||
export BUILD_THEME_FONT_TEXT="Noto Sans KR"
|
||||
# set font if japanese
|
||||
if [ "$language" == "ja" ]; then
|
||||
export build_theme_font_code="Noto Sans JP"
|
||||
export build_theme_font_text="Noto Sans JP"
|
||||
fi
|
||||
|
||||
# Set font if russian or chinese
|
||||
@@ -82,8 +82,8 @@ if [[ "$blog" == false ]]; then
|
||||
export BUILD_THEME_FONT_TEXT="Noto Sans TC"
|
||||
fi
|
||||
|
||||
# Set stylesheet if language is non-latin
|
||||
if [[ "he ko ru zh-Hant zh-TW" =~ $language ]]; then
|
||||
# Set stylesheet if hebrew or russian or chinese
|
||||
if [[ "he ja ru zh-Hant zh-TW" =~ $language ]]; then
|
||||
export TRANSLATION_STYLESHEET="assets/stylesheets/lang-$language.css?v=20240410"
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
/// Copyright (c) 2026 Jonah Aragon <jonah@triplebit.net>
|
||||
/// Copyright (c) 2023 Jonah Aragon <jonah@triplebit.net>
|
||||
///
|
||||
/// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
/// copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,39 +20,39 @@
|
||||
/// DEALINGS
|
||||
*/
|
||||
|
||||
/* korean */
|
||||
/* japanese */
|
||||
@font-face {
|
||||
font-family: 'Noto Serif KR';
|
||||
font-family: 'Noto Serif JP';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-400-normal.woff) format('woff');
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-400-normal.woff) format('woff');
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Noto Serif KR';
|
||||
font-family: 'Noto Serif JP';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-400-normal.woff) format('woff');
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-400-normal.woff) format('woff');
|
||||
}
|
||||
|
||||
/* korean */
|
||||
/* japanese */
|
||||
@font-face {
|
||||
font-family: 'Noto Serif KR';
|
||||
font-family: 'Noto Serif JP';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-700-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-700-normal.woff) format('woff');
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-700-normal.woff) format('woff');
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Noto Serif KR';
|
||||
font-family: 'Noto Serif JP';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-700-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-700-normal.woff) format('woff');
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-700-normal.woff) format('woff');
|
||||
}
|
||||
|
||||
h1, h2, h3, .md-header__topic {
|
||||
font-family: "Bagnard", "Noto Serif KR", serif;
|
||||
font-family: "Bagnard", "Noto Serif JP", serif;
|
||||
font-weight: 700!important;
|
||||
}
|
||||
@@ -14,8 +14,8 @@ definitions:
|
||||
- &font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ko" -%}
|
||||
Noto Sans KR
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Sans TC
|
||||
{%- else -%}
|
||||
|
||||
@@ -22,10 +22,10 @@ definitions:
|
||||
- &title_font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Serif TC
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- else -%}
|
||||
Bagnard
|
||||
{%- endif -%}
|
||||
@@ -40,10 +40,10 @@ definitions:
|
||||
- &font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Sans TC
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- else -%}
|
||||
Public Sans
|
||||
{%- endif -%}
|
||||
|
||||
@@ -18,10 +18,10 @@ definitions:
|
||||
- &title_font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Serif TC
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- else -%}
|
||||
Bagnard
|
||||
{%- endif -%}
|
||||
@@ -29,10 +29,10 @@ definitions:
|
||||
- &font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Sans TC
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- else -%}
|
||||
Public Sans
|
||||
{%- endif -%}
|
||||
|
||||
@@ -22,8 +22,8 @@ definitions:
|
||||
- &title_font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Serif TC
|
||||
{%- else -%}
|
||||
@@ -40,10 +40,10 @@ definitions:
|
||||
- &font_family >-
|
||||
{%- if config.theme.language == "he" -%}
|
||||
Suez One
|
||||
{%- elif config.theme.language == "ja" -%}
|
||||
Noto Serif JP
|
||||
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
|
||||
Noto Sans TC
|
||||
{%- elif config.theme.language == ("ko") -%}
|
||||
Noto Serif KR
|
||||
{%- else -%}
|
||||
Public Sans
|
||||
{%- endif -%}
|
||||
|
||||
Reference in new issue
Block a user