Skip to content

Commit 256e50b

Browse files
committed
chore: migrate to master branch
1 parent b9a3f6e commit 256e50b

File tree

4 files changed

+17
-35
lines changed

4 files changed

+17
-35
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Check
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
pull_request:
88
types:
99
- opened
1010
- reopened
1111
- synchronize
1212
branches:
13-
- main
13+
- master
1414

1515
workflow_dispatch:
1616

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
types:
66
- closed
77
branches:
8-
- main
8+
- master
99

1010
jobs:
1111
publish:
12-
if: github.event.pull_request.merged == true && github.head_ref == 'changeset-release/main'
12+
if: github.event.pull_request.merged == true && github.head_ref == 'changeset-release/master'
1313
name: Publish
1414
runs-on: ubuntu-latest
1515
steps:

.github/workflows/version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Version
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77

88
jobs:
99
version:
Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,33 @@
11
---
22
import { currentLocale } from "astro-nanostores-i18n:runtime";
33
import Image from "astro/components/Image.astro";
4+
import { getCollection } from "astro:content";
45
import { getEntry } from "astro:content";
56
67
type Props = {
78
class?: string;
8-
gallery: string;
9+
title: string;
910
};
1011
11-
const { class: className, gallery } = Astro.props;
12+
const { class: className, title } = Astro.props;
1213
const locale = currentLocale.get();
13-
const galleryEntry = await getEntry("galleries", `${gallery}/${locale}`);
14-
if (!galleryEntry) {
15-
throw new Error(`Gallery not found: ${gallery} (${locale})`);
14+
console.log(className);
15+
console.log(await getCollection("galleries"));
16+
const gallery = await getEntry("galleries", `${title}/${locale}`);
17+
if (!gallery) {
18+
throw new Error(`Gallery not found: ${title} (${locale})`);
1619
}
1720
---
1821

1922
<section class:list={[className]}>
2023
<slot name="title" />
2124
<div>
2225
{
23-
galleryEntry.data.items.map((item) => (
24-
<Image src={item.photo} width={800} alt={typeof item.label === "string" ? item.label : ""} />
26+
gallery.data.items.map((item) => (
27+
<div>
28+
<Image src={item.photo} alt={typeof item.label === "string" ? item.label : ""} />
29+
</div>
2530
))
2631
}
2732
</div>
2833
</section>
29-
30-
<style>
31-
section {
32-
& > div {
33-
display: grid;
34-
grid-template-columns: repeat(2, 1fr);
35-
justify-items: center;
36-
37-
img {
38-
height: auto;
39-
width: 100%;
40-
object-fit: cover;
41-
border-radius: var(--size-border-radius);
42-
filter: saturate(0.2);
43-
transition: 1s;
44-
45-
&:hover {
46-
filter: saturate(1);
47-
}
48-
}
49-
}
50-
}
51-
</style>

0 commit comments

Comments
 (0)