Skip to content

Commit

Permalink
Merge pull request #26 from winc1980/fix-works3
Browse files Browse the repository at this point in the history
Fix works3
  • Loading branch information
fumaSuzuki authored Oct 31, 2024
2 parents d10876c + 7126987 commit a03a5ca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const title = ''
const description = ''
const og_image = ''
const defaultImg = 'https://www.winc.ne.jp/images/background.jpg'
console.log(posts)
---

<Layout title={title} , description={description}, og_image={og_image}>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/works/[workId].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Layout from '@/layouts/Layout.astro'
import '@/scss/subpage.scss'
import MV from '@/components/Mv.astro'
import { Image } from 'astro:assets'
import Button from '@/components/Button.astro'
//microCMS呼び出し
import { getWorks, getWorksDetail } from '@/lib/microcms'
Expand All @@ -20,7 +19,9 @@ export async function getStaticPaths() {
//記事の詳細情報を取得
const { workId } = Astro.params
const work = await getWorksDetail(workId as string)
const response = await getWorks({ fields: ['id', 'title'] })
const response = await getWorks({
fields: ['id', 'title', 'pc_image', 'product_category'],
})
const title = ''
const description = ''
Expand Down Expand Up @@ -108,7 +109,6 @@ const og_image = ''
<section id="works-detail-other-works" class="p-works-detail-other-works">
<div class="l-container">
<h2>Other Works</h2>

</div>
</section>
</main>
Expand Down
1 change: 0 additions & 1 deletion src/pages/works/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getWorks } from '@/lib/microcms'
const response = await getWorks({
fields: ['id', 'title', 'pc_image', 'product_category'],
})
console.log(response);
const title = ''
const description = ''
const og_image = ''
Expand Down
10 changes: 0 additions & 10 deletions src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -847,13 +847,6 @@ section {
}
}
&-cards {
h2 {
color: #000;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
Expand Down Expand Up @@ -897,9 +890,6 @@ section {
}
}
&-cards {
h2 {
font-size: 20px;
}
ul {
grid-template-columns: 1fr;
li {
Expand Down

0 comments on commit a03a5ca

Please # to comment.