Skip to content

Commit

Permalink
Do not optimise gallery photos
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTham committed Mar 31, 2024
1 parent eca3af0 commit 489e277
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
Expand All @@ -20,12 +20,12 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
- name: Install, build, and upload your site output
uses: withastro/action@v2
# with:
# package-manager: pnpm
# node-version: 18
# path: . # The root location of your Astro project inside the repository. (optional)
# 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 18. (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:
needs: build
Expand Down
6 changes: 3 additions & 3 deletions src/components/lightbox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const imagetitles = images.map((image) => image.src.split('/').reverse()[0].spli
data-pswp-width={image.width}
data-pswp-height={image.height}
>
<Image
src={image}
<img
src={image.src}
alt={imagetitles[i]}
width={600}
height={(image.height * 600) / image.width}
format='webp'
// format='webp'
class='rounded'
/>
<span class='pswp-caption-content'>
Expand Down

0 comments on commit 489e277

Please sign in to comment.