load thumb in package details page

This commit is contained in:
neil 2022-10-29 11:17:19 +08:00
parent 8a1c202c03
commit 18b2e92c2f
2 changed files with 236 additions and 126 deletions

View file

@ -1,146 +1,253 @@
[ [
{ {
"name": "mpdecimal", "airtable_record_id": "rec2wRWth0lgvPAid",
"full_name": "mpdecimal", "slug": "mesonbuild_com",
"desc": "Library for decimal floating point arithmetics", "homepage": "https://mesonbuild.com",
"homepage": "https://www.bytereef.org/mpdecimal/", "name": "mesonbuild.com",
"version": "2.5.1", "version": "0.63.3",
"installs": 3986221, "last_modified": "2022-10-06T15:45:08.000Z",
"full_name": "mesonbuild.com",
"dl_count": 270745,
"maintainer": "", "maintainer": "",
"thumb_image_url": "/Images/package-thumb-nolabel.jpg", "desc": "Fast and user friendly build system",
"dl_count": 1,
"last_modified": "2022-09-26T19:46:25.000Z"
},
{
"name": "svg2png",
"full_name": "svg2png",
"desc": "SVG to PNG converter",
"homepage": "https://cairographics.org/",
"version": "0.1.3",
"installs": 1233,
"maintainer": "pascal",
"thumb_image_url": "/Images/package-thumb-nolabel4.jpg",
"dl_count": 2,
"last_modified": "2022-09-30T15:39:15.000Z"
},
{
"name": "cmake",
"full_name": "cmake",
"desc": "Cross-platform make",
"homepage": "https://www.cmake.org/",
"version": "3.24.2",
"installs": 1729267,
"maintainer": "pascal",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg", "thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"dl_count": 3, "installs": 0
"last_modified": "2022-09-27T15:39:15.000Z"
}, },
{ {
"name": "h2c", "airtable_record_id": "recSM8ux0y8D45gzD",
"full_name": "h2c", "slug": "pixman_org",
"desc": "Headers 2 curl", "homepage": "http://www.pixman.org/",
"homepage": "https://curl.se/h2c/", "maintainer": "freedesktop",
"version": "1.0", "name": "pixman.org",
"installs": 96, "version": "0.40.0",
"maintainer": "h2o", "last_modified": "2022-09-26T19:37:47.000Z",
"thumb_image_url": "/Images/package-thumb-nolabel.jpg", "full_name": "pixman.org",
"dl_count": 4, "dl_count": 0,
"last_modified": "2022-09-25T15:39:15.000Z" "desc": "Pixman is a library that provides low-level pixel manipulation features such as image compositing and trapezoid rasterization.",
},
{
"name": "libmagic",
"full_name": "libmagic",
"desc": "Implementation of the file(1) command",
"homepage": "https://www.darwinsys.com/file/",
"version": "5.43",
"installs": 162436,
"maintainer": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg", "thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"dl_count": 5, "installs": 0
"last_modified": "2022-09-24T15:39:15.000Z"
},
{
"name": "deno",
"full_name": "deno",
"desc": "Secure runtime for JavaScript and TypeScript",
"homepage": "https://deno.land/",
"version": "1.26.1",
"installs": 204033,
"maintainer": "Ryan Dahl",
"thumb_image_url": "/Images/package-thumb-nolabel2.jpg",
"dl_count": 6,
"last_modified": "2022-09-23T15:39:15.000Z"
},
{
"name": "fontconfig",
"full_name": "fontconfig",
"desc": "XML-based font configuration API for X Windows",
"homepage": "https://wiki.freedesktop.org/www/Software/fontconfig/",
"version": "2.14.0",
"installs": 2485083,
"maintainer": "Max Miedinger",
"thumb_image_url": "/Images/package-thumb-nolabel.jpg",
"dl_count": 7,
"last_modified": "2022-09-22T15:39:15.000Z"
}, },
{ {
"airtable_record_id": "recbaeb2QJ9lxeQRw",
"slug": "freedesktop_org_pkg_config",
"homepage": "https://freedesktop.org",
"maintainer": "freedesktop.org",
"name": "pkg-config", "name": "pkg-config",
"full_name": "pkg-config",
"desc": "Manage compile and link flags for libraries",
"homepage": "https://freedesktop.org/wiki/Software/pkg-config/",
"version": "0.29.2", "version": "0.29.2",
"installs": 2634164, "last_modified": "2022-10-20T01:32:15.000Z",
"maintainer": "pascal", "full_name": "freedesktop.org/pkg-config",
"thumb_image_url": "/Images/package-thumb-nolabel4.jpg", "dl_count": 2661501,
"dl_count": 8, "desc": "Manage compile and link flags for libraries",
"last_modified": "2022-09-21T15:39:15.000Z"
},
{
"name": "shared-mime-info",
"full_name": "shared-mime-info",
"desc": "Database of common MIME types",
"homepage": "https://wiki.freedesktop.org/www/Software/shared-mime-info",
"version": "2.2",
"installs": 642619,
"maintainer": "Mr.Mime",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg", "thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"dl_count": 9, "installs": 0
"last_modified": "2022-09-21T15:39:15.000Z"
}, },
{ {
"name": "ttfautohint", "airtable_record_id": "rec5b1Fd9sdTbSkI6",
"full_name": "ttfautohint", "slug": "gnu_org_gettext",
"desc": "Auto-hinter for TrueType fonts", "homepage": "https://gnu.org",
"homepage": "https://www.freetype.org/ttfautohint/", "maintainer": "gnu.org",
"version": "1.8.4", "name": "gettext",
"installs": 4696, "version": "0.21.1",
"maintainer": "pascal", "last_modified": "2022-10-20T01:23:46.000Z",
"thumb_image_url": "/Images/package-thumb-nolabel.jpg", "full_name": "gnu.org/gettext",
"dl_count": 10, "dl_count": 3715970,
"last_modified": "2022-09-20T15:39:15.000Z" "desc": "GNU internationalization (i18n) and localization (l10n) library",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
}, },
{ {
"name": "numactl", "airtable_record_id": "recKgwsxJh8aYxr6P",
"full_name": "numactl", "slug": "bins_pre_2022_10_18_gnu_org",
"desc": "NUMA support for Linux", "homepage": "https://gnu.org",
"homepage": "https://github.com/numactl/numactl", "maintainer": "bins-pre-2022-10-18",
"version": "2.0.16", "name": "gnu.org",
"installs": 1120, "version": "0.21.0",
"maintainer": "FSS", "last_modified": "2022-10-26T22:20:57.000Z",
"thumb_image_url": "/Images/package-thumb-nolabel2.jpg", "full_name": "bins-pre-2022-10-18/gnu.org",
"dl_count": 11, "dl_count": 0,
"last_modified": "2022-09-19T15:39:15.000Z" "desc": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
}, },
{ {
"name": "flex", "airtable_record_id": "rec3CDKHQtb8RZo4J",
"full_name": "flex", "slug": "ipfs_tech",
"desc": "Fast Lexical Analyzer, generates Scanners (tokenizers)", "homepage": "https://ipfs.tech",
"homepage": "https://github.com/westes/flex", "name": "ipfs.tech",
"version": "2.6.4", "version": "0.16.0",
"installs": 35001, "last_modified": "2022-10-19T21:36:52.000Z",
"full_name": "ipfs.tech",
"dl_count": 14457,
"maintainer": "", "maintainer": "",
"thumb_image_url": "/Images/package-thumb-nolabel4.jpg", "desc": "Peer-to-peer hypermedia protocol",
"dl_count": 12, "thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"last_modified": "2022-09-18T15:39:15.000Z" "installs": 0
},
{
"airtable_record_id": "rec3S1tzbfzq1bmvc",
"slug": "nixos_org_patchelf",
"homepage": "https://nixos.org",
"maintainer": "nixos.org",
"name": "patchelf",
"version": "0.15.0",
"last_modified": "2022-09-27T04:50:44.000Z",
"full_name": "nixos.org/patchelf",
"dl_count": 0,
"desc": "PatchELF is a simple utility for modifying existing ELF executables and libraries.",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recUIw0boyZBoh4lQ",
"slug": "tea_xyz",
"homepage": "https://tea.xyz",
"maintainer": "tea.xyz",
"name": "tea.xyz",
"version": "0.8.6",
"last_modified": "2022-10-19T19:13:51.000Z",
"full_name": "tea.xyz",
"dl_count": 0,
"desc": "Website of tea.xyz",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "reczeCWpKtsqKEINF",
"slug": "charm_sh_gum",
"homepage": "https://charm.sh",
"maintainer": "charm.sh",
"name": "gum",
"version": "0.8.0",
"last_modified": "2022-10-21T02:15:16.000Z",
"full_name": "charm.sh/gum",
"dl_count": 0,
"desc": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recnXg9PFDyYsGOYp",
"slug": "pyyaml_org",
"homepage": "https://pyyaml.org",
"name": "pyyaml.org",
"version": "0.2.5",
"last_modified": "2022-10-03T15:35:14.000Z",
"full_name": "pyyaml.org",
"dl_count": 107505,
"maintainer": "",
"desc": "YAML framework for Python",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "reczYRb2bZsZMFQWt",
"slug": "tea_xyz_gx",
"homepage": "https://tea.xyz",
"maintainer": "tea.xyz",
"name": "gx",
"version": "0.1.0",
"last_modified": "2022-10-19T16:47:44.000Z",
"full_name": "tea.xyz/gx",
"dl_count": 0,
"desc": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recQr2GBxWIbRpklO",
"slug": "unicode_org",
"homepage": "https://unicode.org",
"name": "unicode.org",
"version": "71.1.1",
"last_modified": "2022-09-26T19:46:25.000Z",
"full_name": "unicode.org",
"dl_count": 5176882,
"maintainer": "",
"desc": "The Unicode Consortium is the standards body for the internationalization of software and services. Deployed on more than 20 billion devices around the world, Unicode also provides the solution for internationalization and the architecture to support localization.",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "rec2YuxV2Y9C68eXz",
"slug": "bins_pre_2022_10_18_nodejs_org",
"homepage": "https://nodejs.org",
"maintainer": "bins-pre-2022-10-18",
"name": "nodejs.org",
"version": "18.10.0",
"last_modified": "2022-10-26T22:41:01.000Z",
"full_name": "bins-pre-2022-10-18/nodejs.org",
"dl_count": 0,
"desc": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recihVbKobbz64mJZ",
"slug": "llvm_org",
"homepage": "https://llvm.org",
"name": "llvm.org",
"version": "14.0.6",
"last_modified": "2022-10-18T09:52:30.000Z",
"full_name": "llvm.org",
"dl_count": 524573,
"maintainer": "",
"desc": "Next-gen compiler infrastructure\n",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},{
"airtable_record_id": "recSZ305UlAS9rq1q",
"slug": "ijg_org",
"homepage": "https://ijg.org",
"name": "ijg.org",
"version": "9.5.0",
"last_modified": "2022-09-27T09:17:13.000Z",
"full_name": "ijg.org",
"dl_count": 2363922,
"maintainer": "",
"desc": "Image manipulation library",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recRKo9eBpysRGtlE",
"slug": "bins_pre_2022_10_18_haskell_org",
"homepage": "https://haskell.org",
"maintainer": "bins-pre-2022-10-18",
"name": "haskell.org",
"version": "9.2.4",
"last_modified": "2022-10-26T22:32:26.000Z",
"full_name": "bins-pre-2022-10-18/haskell.org",
"dl_count": 0,
"desc": "",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recFqwOok0aD8dRFf",
"slug": "gnu_org_coreutils",
"homepage": "https://gnu.org",
"maintainer": "gnu.org",
"name": "coreutils",
"version": "9.1.0",
"last_modified": "2022-10-26T07:23:27.000Z",
"full_name": "gnu.org/coreutils",
"dl_count": 0,
"desc": "GNU File, Shell, and Text utilities",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
},
{
"airtable_record_id": "recdB627HKa2XmorH",
"slug": "pcre_org",
"homepage": "https://pcre.org",
"name": "pcre.org",
"version": "8.45.0",
"last_modified": "2022-09-26T18:36:33.000Z",
"full_name": "pcre.org",
"dl_count": 2396413,
"maintainer": "",
"desc": "The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5",
"thumb_image_url": "/Images/package-thumb-nolabel3.jpg",
"installs": 0
} }
] ]

View file

@ -4,7 +4,10 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12"> <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12">
<div class="package-thumbnail gray-bg"> <div class="package-thumbnail">
{{ range where $.Site.Data.packages "name" .Title }}
<img class="package-image" src="{{- .thumb_image_url -}}" alt="{{- .name -}}" style="width:100%; height:100%;">
{{ end }}
</div> </div>
</div> </div>
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12"> <div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">