diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-28 19:03:38 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-28 19:03:38 +0200 |
| commit | 78aec78d7c5977ee4367093b1fd6910e6c6b6cb4 (patch) | |
| tree | b570e508ecef974a3adb4578e570632cf22ac3a1 /layouts/repository/single.html | |
| parent | 175d0fa86ae8cdb78d35e84928655b5324cbc66e (diff) | |
| download | danixxyz-theme-78aec78d7c5977ee4367093b1fd6910e6c6b6cb4.tar.gz danixxyz-theme-78aec78d7c5977ee4367093b1fd6910e6c6b6cb4.zip | |
fix: update deprecated .Site.Languages and .Site.Data APIs to site.Languages and hugo.Data
- Replace .Site.Languages with site.Languages in hamburger-menu.html and header.html
- Replace .Site.Data with hugo.Data in repository/single.html and footer.html
- Add acronym shortcode for semantic HTML abbr tags with title attributes
Diffstat (limited to 'layouts/repository/single.html')
| -rw-r--r-- | layouts/repository/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/repository/single.html b/layouts/repository/single.html index 6249193..c02f7cf 100644 --- a/layouts/repository/single.html +++ b/layouts/repository/single.html @@ -28,12 +28,12 @@ <section class="mt-16"> <h2 class="text-3xl font-bold mb-8">{{ i18n "githubReposTitle" }}</h2> - {{ if eq (len $.Site.Data.repos.repos) 1 }} + {{ if eq (len (index hugo.Data "repos").repos) 1 }} <div class="max-w-md mx-auto"> {{ else }} <div class="repo-grid"> {{ end }} - {{ range $.Site.Data.repos.repos }} + {{ range (index hugo.Data "repos").repos }} <div class="border border-border rounded-lg overflow-hidden hover:shadow-lg transition-shadow"> <!-- Card Image --> <img |
