Skip to content

Commit

Permalink
sync and update
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Apr 13, 2024
1 parent 2a3d26e commit 32e5a9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: withastro/action@v2
with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
Expand Down
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export default defineConfig({
integrations: [collect_content(config.collect_content)],
output: "static",
outDir: config.outDir,
base: config.base,
trailingSlash: 'ignore'
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {
"@google/model-viewer": "^3.4.0",
"@svgdotjs/svg.js": "^3.1.2",
"astro": "^4.0.3",
"content-structure": "^1.0.5",
"astro": "^4.5.10",
"content-structure": "^1.0.7",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"datatables.net-dt": "^1.13.7",
Expand Down
2 changes: 1 addition & 1 deletion src/components/gallery/grid_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function yaml_to_grid_images(code,dirpath){
} else if(aspectRatio < 1) { // Taller image
spanHeight = Math.round(1 / aspectRatio) // Adjust this logic as per your grid layout needs
}
console.log(`${relFile} : width ${width} ; height ${height}; ratio ${aspectRatio} ; span ${spanWidth} / ${spanHeight}`)
//console.log(`${relFile} : width ${width} ; height ${height}; ratio ${aspectRatio} ; span ${spanWidth} / ${spanHeight}`)
const url = await relAssetToUrl(relFile,dirpath)
imagesUrls.push({
url,
Expand Down

0 comments on commit 32e5a9c

Please sign in to comment.