= $page->title() ?>
+= $page->price() ?>
+diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..155704a --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + name: Deploy to Production + runs-on: docker + steps: + - name: Checkout code + run: | + git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . + ls -la + + - name: Deploy via FTP + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + PREPRODUCTION_HOST: ${{ secrets.PREPRODUCTION_HOST }} + run: | + apt-get update -qq && apt-get install -y -qq lftp + cat > /tmp/lftp-script.txt < + +
diff --git a/site/snippets/picture.php b/site/snippets/picture.php new file mode 100644 index 0000000..ab28a7b --- /dev/null +++ b/site/snippets/picture.php @@ -0,0 +1,33 @@ + + alt() ?? ''; + $crop = $crop ?? false; + + $webPSrcset = $file->srcset('webp'); + $srcset = $file->srcset(); + $src = $file->url(); + $width = $file->resize(1800)->width(); + $height = $file->resize(1800)->height(); + $class = isset($class) ? 'class="' . $class . '"': ''; + $lazy = $lazy ?? true; + $span = isset($span) ? 'style="--span: ' . $span . ';"': ''; + ?> + + + += $page->price() ?>
+= $product->title() ?>
= $product->description() ?> - +