Skip to content

Commit

Permalink
Change npm package 'flag-icon-css' to 'flag-icons'
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Sep 8, 2024
1 parent aab2b39 commit f032986
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 449 deletions.
2 changes: 1 addition & 1 deletion data/toha/styles.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flags:
styles:
- flag-icon-css/css/flag-icons
- flag-icons/css/flag-icons

videoplayer:
services:
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module:
mounts:
- source: static/files
target: static/files
- source: ./node_modules/flag-icon-css/flags
- source: ./node_modules/flag-icons/flags
target: static/flags
- source: ./node_modules/@fontsource/mulish/files
target: static/files
Expand Down
14 changes: 7 additions & 7 deletions exampleSite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions exampleSite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"eslint-plugin-promise": "github.com/hugo-toha/toha/v4",
"feather-icons": "github.com/hugo-toha/toha/v4",
"filterizr": "github.com/hugo-toha/toha/v4",
"flag-icon-css": "github.com/hugo-toha/toha/v4",
"flag-icons": "github.com/hugo-toha/toha/v4",
"fuse.js": "github.com/hugo-toha/toha/v4",
"highlight.js": "github.com/hugo-toha/toha/v4",
"imagesloaded": "github.com/hugo-toha/toha/v4",
Expand Down Expand Up @@ -45,7 +45,7 @@
"eslint-plugin-promise": "^6.1.1",
"feather-icons": "^4.29.1",
"filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7",
"flag-icons": "^7.2.3",
"fuse.js": "^6.6.2",
"highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module:
target: i18n
- source: archetypes
target: archetypes
- source: ../../node_modules/flag-icon-css/flags
- source: ../../node_modules/flag-icons/flags
target: static/flags
- source: ../../node_modules/@fontsource/mulish/files
target: static/files
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/navigators/lang-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a class="nav-link dropdown-toggle" href="#" id="languageSelector" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ if ne site.Params.features.flags.enable false }}
{{ $countryCode := partial "helpers/country-code.html" . }}
<span class="flag-icon flag-icon-{{$countryCode}}"></span>
<span class="fi fi-{{$countryCode}}"></span>
{{ end }}
{{ site.Language.LanguageName }}
</a>
Expand All @@ -15,7 +15,7 @@
<a class="dropdown-item nav-link languages-item" href="{{ path.Join "/" (cond (eq .Language.Lang $.Sites.Default.Language.Lang) "" .Language.Lang) $pageURL }}">
{{ if ne site.Params.features.flags.enable false }}
{{ $countryCode := partial "helpers/country-code.html" . }}
<span class="flag-icon flag-icon-{{$countryCode}}"></span>
<span class="fi fi-{{$countryCode}}"></span>
{{ end }}
{{ .Language.LanguageName }}
</a>
Expand Down
Loading

0 comments on commit f032986

Please sign in to comment.