Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit c0108a0

Browse files
authored
Merge pull request #8 from input-output-hk/fix-home-video
fix video query
2 parents dbd955b + 835c884 commit c0108a0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

resources/content/pages/index/index-en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
home_title: en (English) index page content
33
home_content:
4+
home_video_id: re96UgMk6GQ
45
home_intro: |
56
Haskell is not “just another programming language”: it embodies a radical and elegant attack on the entire enterprise of writing software.
67

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ export default () => (
7272
<Grid container spacing={4}>
7373
<Grid item md={5} xs={12}>
7474
<Hidden mdUp>
75-
<iframe width='100%' height='450' src='https://www.youtube.com/embed/re96UgMk6GQ' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' />
75+
<iframe width='100%' height='450' src={`https://www.youtube.com/embed/${content.home_video_id}`} allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' />
7676
</Hidden>
7777
<Hidden smDown>
78-
<iframe width='100%' height='315' src='https://www.youtube.com/embed/re96UgMk6GQ' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' />
78+
<iframe width='100%' height='315' src={`https://www.youtube.com/embed/${content.home_video_id}`} allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' />
7979
</Hidden>
8080
</Grid>
8181
<Grid item md={5}>

src/queries/IndexPageQuery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const IndexPageQuery = ({ render }) => (
1515
childMarkdownRemark{
1616
frontmatter {
1717
home_content {
18+
home_video_id
1819
home_intro
1920
home_claim
2021
home_goals {

0 commit comments

Comments
 (0)