Skip to content

Commit

Permalink
Hebrew language build fix (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Mar 31, 2024
1 parent fc19f44 commit 4b92316
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,21 @@ jobs:

- uses: actions/cache/restore@v4.0.2
with:
key: site-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-${{ hashfiles('.cache/**') }}
key: site-cache-${{ inputs.repo }}-${{ inputs.ref }}-${{ hashfiles('.cache/**') }}
path: .cache
restore-keys: |
site-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-
site-cache-${{ inputs.repo }}-${{ inputs.lang }}-
site-cache-${{ github.repository }}-${{ inputs.lang }}
site-cache-${{ inputs.repo }}-${{ inputs.ref }}-
site-cache-${{ inputs.repo }}-
- uses: actions/cache/restore@v4.0.2
with:
key: card-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-${{ hashfiles('config/.cache/plugin/social/manifest.json') }}
path: |
config/.cache/plugin/social/manifest.json
config/.cache/plugin/social/assets
restore-keys: |
card-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-
card-cache-${{ inputs.repo }}-${{ inputs.lang }}-
- run: |
pip install pipenv
Expand All @@ -110,9 +119,16 @@ jobs:
- uses: actions/cache/save@v4.0.2
with:
key: site-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-${{ hashfiles('.cache/**') }}
key: site-cache-${{ inputs.repo }}-${{ inputs.ref }}-${{ hashfiles('.cache/**') }}
path: .cache

- uses: actions/cache/save@v4.0.2
with:
key: card-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ inputs.ref }}-${{ hashfiles('config/.cache/plugin/social/manifest.json') }}
path: |
config/.cache/plugin/social/manifest.json
config/.cache/plugin/social/assets
- uses: actions/upload-artifact@v4
with:
name: site-build-${{ inputs.lang }}.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
contents: read
uses: ./.github/workflows/build.yml
with:
ref: ${{ github.repository }}
repo: ${{ github.ref }}
ref: ${{ github.ref }}
repo: ${{ github.repository }}
lang: ${{ matrix.lang }}
context: production
continue-on-error: false
Expand Down
9 changes: 8 additions & 1 deletion config/layouts/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ definitions:
Bagnard
{%- endif -%}

- &title_font_style >-
{%- if config.theme.language == "he" -%}
Regular
{%- else -%}
Bold
{%- endif -%}

- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
Expand Down Expand Up @@ -128,7 +135,7 @@ layers:
height: 1.5
font:
family: *title_font_family
style: Bold
style: *title_font_style

# Page description
- size: { width: 864, height: 96 }
Expand Down

0 comments on commit 4b92316

Please sign in to comment.