diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-14 20:53:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-14 20:53:36 +0200 |
| commit | 0c60fe67de91e4c798c02c6305819d8d25fa8f4e (patch) | |
| tree | 6fd29814769eaaf1b82c576923fc9d6aaec1ac6e /layouts/_default/baseof.html | |
| parent | 3661990df76a543a8cd1ce5cfedd33a0166838ff (diff) | |
| download | danixxyz-theme-0c60fe67de91e4c798c02c6305819d8d25fa8f4e.tar.gz danixxyz-theme-0c60fe67de91e4c798c02c6305819d8d25fa8f4e.zip | |
fix: resolve post-review issues in pkg-list shortcode
- Replace data-feather icon with inline SVG (feather.replace() runs
before Alpine renders x-for rows, so dynamic icons never rendered)
- Add defer to pkg-list.js and pkg-changelog.js script tags
- Add missing i18n keys: pkg_list_no_results, pkg_list_col_package,
pkg_list_col_version, pkg_list_col_link (EN + IT)
- Use i18n.noResults, i18n.colPkg/Ver/Link in template
- Fix aria-label to use i18n.view instead of hardcoded "View"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_default/baseof.html')
| -rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 50bdf39..734c808 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -93,9 +93,9 @@ <!-- Package repository shortcodes --> {{ $pkgListScript := resources.Get "js/pkg-list.js" | minify }} - <script src="{{ $pkgListScript.RelPermalink }}"></script> + <script src="{{ $pkgListScript.RelPermalink }}" defer></script> {{ $pkgChangelogScript := resources.Get "js/pkg-changelog.js" | minify }} - <script src="{{ $pkgChangelogScript.RelPermalink }}"></script> + <script src="{{ $pkgChangelogScript.RelPermalink }}" defer></script> <!-- 404 Not Found page script --> {{ $notFoundScript := resources.Get "js/not-found-page.js" | minify }} |
