Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 5e7da3b8 authored by HGouttebroze's avatar HGouttebroze
Browse files

change javascript dummy page to markdown and explain page creation in readme file

parent 47a3a367
No related branches found
No related tags found
1 merge request!6Resolve "ci: build fail"
Pipeline #2383 passed
...@@ -31,3 +31,13 @@ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy ...@@ -31,3 +31,13 @@ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
``` ```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
## Create a new page
We have two different ways to create a new page, in JavaScript, or, in Markdown:
- If we don't need a specific layout, we recommend to create a page in Markdown, with `.md` extention.
- If we need to specific layout, create a page in JavaScript with `.js` extention.
This offers a better return on investment because the Markdown (`.md`) is faster to do.
import React from "react";
import Layout from "@theme/Layout";
function Dummy() {
return (
<Layout title="Bonjour">
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "50vh",
fontSize: "20px",
}}>
<p>
Editez <code>pages/dummy.js</code> et sauvegardez pour recharger.
</p>
</div>
</Layout>
);
}
export default Dummy;
---
title: dummy
description: page factice
---
# Page factice
Page factice penser à créer une vraie page !
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment