Skip to content

Commit

Permalink
Merge pull request #508 from Xpirix/remove_country_flag_cdn
Browse files Browse the repository at this point in the history
Load the TwemojiCountryFlags font locally
  • Loading branch information
Xpirix authored Dec 19, 2024
2 parents 8d60387 + 9b6cc87 commit 80c768a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 5 additions & 1 deletion themes/hugo-bulma-blocks-theme/assets/sass/bulma.sass
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
{{ $truenoSBd := resources.Get "webfonts/TruenoSBd.otf" }}
{{ $truenoBd := resources.Get "webfonts/TruenoBd.otf" }}
{{ $truenoUltBlk := resources.Get "webfonts/TruenoUltBlk.otf" }}
{{ $countryFlagsEmoji := resources.Get "webfonts/TwemojiCountryFlags.woff2" }}

@font-face
font-family: 'Montserrat'
Expand Down Expand Up @@ -61,7 +62,10 @@
font-family: "Trueno"
src: url("{{ $truenoUltBlk.RelPermalink }}") format("opentype")
font-weight: 700


@font-face
font-family: "Twemoji Country Flags"
src: url("{{ $countryFlagsEmoji.RelPermalink }}") format("opentype")

{{ $worksans := resources.Get "webfonts/worksans.woff2" }}

Expand Down
Binary file not shown.
8 changes: 0 additions & 8 deletions themes/hugo-bulma-blocks-theme/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,6 @@
type="application/javascript"
src="{{ .Site.Params.uniNavHeaderUrl }}"
></script>

<!-- Countries Flag for windows -->
<!-- Added by Lova -->
<!-- See https://github.com/talkjs/country-flag-emoji-polyfill -->
<script type="module" defer>
import { polyfillCountryFlagEmojis } from "https://cdn.skypack.dev/country-flag-emoji-polyfill";
polyfillCountryFlagEmojis();
</script>
</head>

<body></body>
Expand Down

0 comments on commit 80c768a

Please sign in to comment.