-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: install helmet types * feat: implement pages description and title
- Loading branch information
1 parent
095a23a
commit b418484
Showing
19 changed files
with
913 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Qui sommes-nous ?" | ||
date: "2020-05-26" | ||
par: "Franck" | ||
categories: ["page"] | ||
htmlTitle: "Rencontrez ceux qui font Lion." | ||
description: "Une (très) petite équipe passionnée du web" | ||
slug: "about" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Contact" | ||
date: "2020-06-12" | ||
par: "Franck" | ||
categories: ["page"] | ||
htmlTitle: "Contact" | ||
description: "Envie de développer votre activité sur internet, contactez-nous via formulaire de contact ou par téléphone." | ||
slug: "contact" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Accueil" | ||
date: "2020-06-12" | ||
par: "Franck" | ||
categories: ["page"] | ||
htmlTitle: "Accueil" | ||
description: "Agence conseil en developpement web et e-commerce" | ||
slug: "home" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Qui sommes-nous ?" | ||
date: "2020-05-26" | ||
par: "Franck" | ||
categories: ["page"] | ||
htmlTitle: "Mentions légales" | ||
description: "" | ||
slug: "legal" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Services" | ||
date: "2020-06-12" | ||
par: "Franck" | ||
categories: ["page"] | ||
htmlTitle: "Prestations web sur meusure" | ||
description: "Boutique en ligne, site vitrine, email marketing, l'agence Lion vous accompagne à chaque étape de votre projet." | ||
slug: "services" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,56 @@ | ||
import React from "react"; | ||
import { Layout } from "../components/ui/Layout"; | ||
import { H1 } from "../components/ui/Headings"; | ||
import { Helmet } from "react-helmet"; | ||
import { graphql } from "gatsby"; | ||
|
||
export default () => ( | ||
<Layout isClear={false}> | ||
<H1>A propos</H1> | ||
</Layout> | ||
); | ||
export default ({ data }) => { | ||
const { | ||
htmlTitle, | ||
description | ||
} = data.allMarkdownRemark.edges[0].node.frontmatter; | ||
|
||
return ( | ||
<> | ||
<Helmet> | ||
<title> | ||
{data.site.siteMetadata.title} - {htmlTitle} | ||
</title> | ||
<meta name="description" content={description}></meta> | ||
</Helmet> | ||
<Layout isClear={false}> | ||
<H1>A propos</H1> | ||
</Layout> | ||
</> | ||
); | ||
}; | ||
|
||
export const query = graphql` | ||
{ | ||
site { | ||
siteMetadata { | ||
title | ||
description | ||
} | ||
} | ||
allMarkdownRemark( | ||
filter: { | ||
frontmatter: { categories: { eq: "page" }, slug: { eq: "about" } } | ||
} | ||
) { | ||
edges { | ||
node { | ||
fields { | ||
slug | ||
} | ||
frontmatter { | ||
title | ||
htmlTitle | ||
description | ||
} | ||
excerpt(pruneLength: 300, format: HTML) | ||
} | ||
} | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.