Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "npm ci"
- name: Configure Hugo resource Cache
run: "echo 'resourceDir: ${{ runner.temp }}/resources_cache' >> hugo.yaml"
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
Expand Down
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ repos:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint-docker
Binary file modified content/news/2/image.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ partial "head.html" . }}
</head>
<body>
<header id="header" class="o-header">{{ partial "header.html" . }}</header>
<header id="header" class="o-header">{{ partialCached "header.html" . }}</header>
<main id="content">{{ block "main" . }}{{ end }}</main>
<footer>{{ partial "footer.html" . }}</footer>
{{ if and (eq .Kind "page") (or (eq .Page.Type "country") (eq .Page.Type "operator")) }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/country/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2 data-pagefind-meta="title">{{ .Title }}</h2>
<div class="o-list__picture">
{{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
{{ $image := resources.Get (printf "images/flags/%s.webp" $object) }}
{{ partial "image.html" $image }}
{{ partialCached "image.html" $image $image }}
</div>
<div>
{{ .Title }}
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/teaser.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@


{{ $image := $page.Page.Resources.GetMatch "image.webp" }}
{{ if $image }}
<div class="m-teaser__image{{ if $listview }} col-md-3 col-12{{ end }}">
{{ partial "image.html" $image }}
{{ partialCached "image.html" $image $image }}
{{ end }}
</div>
<div {{ if $listview }}class="col-md-9 col-12"{{ end }}>
<time class="m-teaser__dateline" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx -y pagefind --site public"
command = "echo 'resourceDir: /opt/build/cache/resources_cache' >> hugo.yaml && hugo --gc --minify -b $DEPLOY_PRIME_URL && npx -y pagefind --site public"
publish = "public"

[build.environment]
Expand Down
Loading