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
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
--output data/publications.json

- name: Restore build cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@v5
with:
path: ${{ env.HUGO_CACHE_HOST_DIR }}
key: hugo-${{ runner.os }}-${{ github.run_id }}
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Save build cache
if: always()
uses: actions/cache/save@v4
uses: actions/cache/save@v5
with:
path: ${{ env.HUGO_CACHE_HOST_DIR }}
key: hugo-${{ runner.os }}-${{ github.run_id }}
Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Agent-generated artifacts must be written under `.agent/`.
- Do not store secrets, tokens, or private credentials.
- Use UTC timestamps in checkpoints and handoffs when possible.

## Static asset paths

- Prefer base-path-safe asset references (`relURL`, relative paths, or equivalent template-aware indirection) over hardcoded root-relative paths like `/images/...` or `/fonts/...` for deployable site assets.

## Important dependency versions

- Hugo (Docker build arg): `0.161.1` (`Dockerfile`)
Expand Down
102 changes: 0 additions & 102 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,108 +8,6 @@ $enable-shadows: true;
$white: #fff;
$black: #000;

//
// Self-hosted font loading (WOFF2 only)
//

@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 300;
font-display: swap;
src:
local("Public Sans Light"),
local("PublicSans-Light"),
url("/fonts/public-sans/public-sans-latin-300-normal.woff2") format("woff2");
}

@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 400;
font-display: swap;
src:
local("Public Sans Regular"),
local("PublicSans-Regular"),
url("/fonts/public-sans/public-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 600;
font-display: swap;
src:
local("Public Sans SemiBold"),
local("PublicSans-SemiBold"),
url("/fonts/public-sans/public-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 400;
font-display: swap;
src:
local("Source Serif 4 Regular"),
local("SourceSerif4-Regular"),
url("/fonts/source-serif-4/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 600;
font-display: swap;
src:
local("Source Serif 4 SemiBold"),
local("SourceSerif4-SemiBold"),
url("/fonts/source-serif-4/source-serif-4-latin-600-normal.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 700;
font-display: swap;
src:
local("Source Serif 4 Bold"),
local("SourceSerif4-Bold"),
url("/fonts/source-serif-4/source-serif-4-latin-700-normal.woff2") format("woff2");
}

@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 400;
font-display: swap;
src:
local("IBM Plex Mono"),
local("IBMPlexMono-Regular"),
url("/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 500;
font-display: swap;
src:
local("IBM Plex Mono Medium"),
local("IBMPlexMono-Medium"),
url("/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 600;
font-display: swap;
src:
local("IBM Plex Mono SemiBold"),
local("IBMPlexMono-SemiBold"),
url("/fonts/ibm-plex-mono/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

$omf-primary: #0f2742;
$omf-secondary: #0e7490;
Expand Down
2 changes: 1 addition & 1 deletion content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{< blocks/section color="primary" >}}
<div class="row justify-content-center mt-5 mb-3">
<div class="col-md-10 col-lg-8 d-flex flex-column align-items-center">
<img src="/images/logo.svg" alt="OMF Logo" class="w-50 img-fluid mb-5" width="201" height="60" fetchpriority="high">
<img src="images/logo.svg" alt="OMF Logo" class="w-50 img-fluid mb-5" width="201" height="60" fetchpriority="high">
<h3 class="font-weight-light text-center">
The <b class="text-secondary">Open Modeling Foundation</b> is an alliance of modeling organizations that coordinates
and administers a common, community developed body of <b>standards</b> and <b>best practices</b> among
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container-fluid mx-auto my-auto">
<div class='row'>
<div class="col-3 col-sm-4 order-sm-2">
<a target="_blank" href='https://alliancecan.ca/en'><img class="img-fluid" src="/images/digital-research-alliance-canada.svg" alt="Digital Research Alliance of Canada" width="1487" height="181" loading="lazy" /></a>
<a target="_blank" href='https://alliancecan.ca/en'><img class="img-fluid" src="{{ "images/digital-research-alliance-canada.svg" | relURL }}" alt="Digital Research Alliance of Canada" width="1487" height="181" loading="lazy" /></a>
</div>
<div class='col-5 col-sm-5 text-center order-sm-2'>
This work was enabled in part by generous support from the <a target="_blank" href='https://sloan.org'><u>Alfred P. Sloan Foundation</u></a>
Expand All @@ -11,7 +11,7 @@
{{ with .Site.Params.copyright }}&copy; {{ now.Year }} {{ .}} {{ T "footer_all_rights_reserved" }}{{ end }}
</div>
<div class='col-4 col-sm-3 order-sm-3'>
<a target="_blank" href='https://sloan.org'><img class="logo" src="/images/alfred-p-sloan-logo.png" alt="Alfred P. Sloan Foundation" width="1688" height="330" loading="lazy" /></a>
<a target="_blank" href='https://sloan.org'><img class="logo" src="{{ "images/alfred-p-sloan-logo.png" | relURL }}" alt="Alfred P. Sloan Foundation" width="1688" height="330" loading="lazy" /></a>
</div>
</div>
</div>
Expand Down
77 changes: 76 additions & 1 deletion layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,84 @@
"fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2"
-}}

<style>
@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 300;
font-display: swap;
src: local("Public Sans Light"), local("PublicSans-Light"),
url("{{ "fonts/public-sans/public-sans-latin-300-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 400;
font-display: swap;
src: local("Public Sans Regular"), local("PublicSans-Regular"),
url("{{ "fonts/public-sans/public-sans-latin-400-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "Public Sans";
font-style: normal;
font-weight: 600;
font-display: swap;
src: local("Public Sans SemiBold"), local("PublicSans-SemiBold"),
url("{{ "fonts/public-sans/public-sans-latin-600-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 400;
font-display: swap;
src: local("Source Serif 4 Regular"), local("SourceSerif4-Regular"),
url("{{ "fonts/source-serif-4/source-serif-4-latin-400-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 600;
font-display: swap;
src: local("Source Serif 4 SemiBold"), local("SourceSerif4-SemiBold"),
url("{{ "fonts/source-serif-4/source-serif-4-latin-600-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 700;
font-display: swap;
src: local("Source Serif 4 Bold"), local("SourceSerif4-Bold"),
url("{{ "fonts/source-serif-4/source-serif-4-latin-700-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 400;
font-display: swap;
src: local("IBM Plex Mono"), local("IBMPlexMono-Regular"),
url("{{ "fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 500;
font-display: swap;
src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"),
url("{{ "fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2" | relURL }}") format("woff2");
}
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 600;
font-display: swap;
src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"),
url("{{ "fonts/ibm-plex-mono/ibm-plex-mono-latin-600-normal.woff2" | relURL }}") format("woff2");
}
</style>

{{- range $path := $fontPreloads -}}
{{- if fileExists (printf "static/%s" $path) -}}
<link rel="preload" href="/{{ $path }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ $path | relURL }}" as="font" type="font/woff2" crossorigin>
{{- end -}}
{{- end -}}