{t("fragments.titre")}
+
It's gorgeous, it's Full HD, it's 1:30 minute of excellent editing but it's 50mb… What a shame.
@@ -56,12 +51,7 @@ While it's not as nice as Premiere Pro, it has way more exporting capabilities.
1. Check Web Optimized
1. Keep MPEG-4 as the format
-
+
### Video screen
@@ -70,12 +60,7 @@ While it's not as nice as Premiere Pro, it has way more exporting capabilities.
1. Choose Peak Framerate. If you don't know the framerate, keep the default setting
1. Choose the type of video you are encoding (film, animation…)
-
+
### Audio screen
@@ -86,12 +71,7 @@ If you have an audio channel, these settings are great and will not influence th
1. Samplerate 44.1
1. Bitrate 192 to 256 (your choice)
-
+
### Export!
@@ -112,12 +92,7 @@ Webm is an html video format and VP9 is its latest codec.
Using Handbrake and webm/VP9, we can achieve really great compression without losing too much quality (or none at all depending on the settings). I was able to divide by 4 the size of a video using these presets:
-
+
The only down side is that it takes some time to encode. It will depend on the video length and your computing power.
diff --git a/src/content/articles/fr/after-effects-expressions.md b/src/content/articles/fr/after-effects-expressions.md
index b301f8c..0012108 100644
--- a/src/content/articles/fr/after-effects-expressions.md
+++ b/src/content/articles/fr/after-effects-expressions.md
@@ -2,10 +2,11 @@
title: After Effects Expressions
subtitle: En cours de traduction, revenez bientôt ;)
lang: fr
+draft: true
slug: "after-effects-expressions"
excerpt: En cours de traduction, revenez bientôt ;)
tags: ["Design"]
createdAt: "2019-04-24T09:00:00.000Z"
---
-[Retour aux articles](/articles/)
+[Retour aux articles](/articles)
diff --git a/src/content/articles/fr/video-compression.md b/src/content/articles/fr/video-compression.md
index 3fdda2b..7c34cdf 100644
--- a/src/content/articles/fr/video-compression.md
+++ b/src/content/articles/fr/video-compression.md
@@ -2,6 +2,7 @@
title: Compression vidéo
subtitle: En cours de traduction, revenez bientôt ;)
lang: fr
+draft: true
slug: "video-compression"
excerpt: Pas encore traduit
tags: ["Design"]
@@ -9,4 +10,4 @@ createdAt: "2021-05-05T09:00:00.000Z"
updatedAt: "2022-06-08T14:24:06.000Z"
---
-[Retour aux articles](/articles/)
+[Retour aux articles](/articles)
diff --git a/src/content/config.ts b/src/content/config.ts
index d584e47..4802aa6 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -14,6 +14,7 @@ const articles = defineCollection({
.transform((str) => new Date(str))
.optional(),
code: z.boolean().optional() || false,
+ draft: z.boolean().optional() || false,
},
});
@@ -31,6 +32,7 @@ const fragments = defineCollection({
.transform((str) => new Date(str))
.optional(),
code: z.boolean().optional() || false,
+ draft: z.boolean().optional() || false,
},
});
diff --git a/src/content/fragments/en/buttons.md b/src/content/fragments/en/buttons.md
index 86a413e..dc7f25b 100644
--- a/src/content/fragments/en/buttons.md
+++ b/src/content/fragments/en/buttons.md
@@ -3,6 +3,7 @@ title: Buttons hover
subtitle: Simple, but nice.
lang: en
slug: "buttons"
+draft: true
excerpt: Easy to grab and use hover effects.
tags: ["CSS"]
code: true
diff --git a/src/content/fragments/en/image-full.md b/src/content/fragments/en/image-full.mdx
similarity index 77%
rename from src/content/fragments/en/image-full.md
rename to src/content/fragments/en/image-full.mdx
index 91b793e..440d7e3 100644
--- a/src/content/fragments/en/image-full.md
+++ b/src/content/fragments/en/image-full.mdx
@@ -2,10 +2,11 @@
title: Full width image
subtitle: Translation in progress, stay tuned ;)
lang: en
+draft: true
slug: "image-full"
createdAt: "2020-09-15T09:00:00.000Z"
updatedAt: "2022-06-08T14:24:06.000Z"
tags: ["CSS"]
---
-[Go back to available snippets](/en/snippets/)
+[Go back to available snippets](/en/snippets)
diff --git a/src/content/fragments/fr/array-vs-array.md b/src/content/fragments/fr/array-vs-array.md
index a873933..e5dc370 100644
--- a/src/content/fragments/fr/array-vs-array.md
+++ b/src/content/fragments/fr/array-vs-array.md
@@ -2,10 +2,11 @@
title: Filtrer un array avec un autre array
subtitle: En cours de traduction.
lang: fr
+draft: true
slug: "array-vs-array"
createdAt: "2022-06-08T14:24:06.000Z"
excerpt: En cours de traduction.
tags: ["nuxt.js"]
---
-[Voir les fragments disponibles](/fragments/)
+[Voir les fragments disponibles](/fragments)
diff --git a/src/content/fragments/fr/buttons.md b/src/content/fragments/fr/buttons.mdx
similarity index 97%
rename from src/content/fragments/fr/buttons.md
rename to src/content/fragments/fr/buttons.mdx
index 726c086..1f0d69e 100644
--- a/src/content/fragments/fr/buttons.md
+++ b/src/content/fragments/fr/buttons.mdx
@@ -3,6 +3,7 @@ title: "Effets de survol de boutons"
subtitle: "Simples mais efficaces."
lang: fr
slug: "buttons"
+draft: true
excerpt: Quelques effets de survol faciles à récupérer et utiliser.
tags: ["CSS"]
code: true
@@ -41,7 +42,7 @@ Tous les boutons présents utilisent ces styles comme base en guise de « r
## Ajout d'icône
```css
@@ -80,7 +81,7 @@ Tous les boutons présents utilisent ces styles comme base en guise de « r
## Double volet
```css
@@ -127,7 +128,7 @@ Tous les boutons présents utilisent ces styles comme base en guise de « r
## Dégradé animé
```css
@@ -162,7 +163,7 @@ Tous les boutons présents utilisent ces styles comme base en guise de « r
## Échelle non desctructrice
```css
diff --git a/src/content/fragments/fr/image-full.md b/src/content/fragments/fr/image-full.mdx
similarity index 100%
rename from src/content/fragments/fr/image-full.md
rename to src/content/fragments/fr/image-full.mdx
diff --git a/src/content/fragments/fr/toulouse-fun.md b/src/content/fragments/fr/toulouse-fun.md
index 709a162..817f344 100644
--- a/src/content/fragments/fr/toulouse-fun.md
+++ b/src/content/fragments/fr/toulouse-fun.md
@@ -2,10 +2,11 @@
title: Toulouse yourself
subtitle: En cours de traduction.
lang: fr
+draft: true
slug: "toulouse-fun"
createdAt: "2022-06-22T15:34:45.000Z"
excerpt: En cours de traduction.
tags: ["lifestyle"]
---
-[Voir les fragments disponibles](/fragments/)
+[Voir les fragments disponibles](/fragments)
diff --git a/src/content/types.generated.d.ts b/src/content/types.generated.d.ts
index 696e946..18a8a20 100644
--- a/src/content/types.generated.d.ts
+++ b/src/content/types.generated.d.ts
@@ -85,8 +85,8 @@ declare module 'astro:content' {
collection: "articles",
data: InferEntrySchema<"articles">
},
-"en/video-compression.md": {
- id: "en/video-compression.md",
+"en/video-compression.mdx": {
+ id: "en/video-compression.mdx",
slug: "en/video-compression",
body: string,
collection: "articles",
@@ -164,8 +164,8 @@ declare module 'astro:content' {
collection: "fragments",
data: InferEntrySchema<"fragments">
},
-"en/image-full.md": {
- id: "en/image-full.md",
+"en/image-full.mdx": {
+ id: "en/image-full.mdx",
slug: "en/image-full",
body: string,
collection: "fragments",
@@ -206,15 +206,15 @@ declare module 'astro:content' {
collection: "fragments",
data: InferEntrySchema<"fragments">
},
-"fr/buttons.md": {
- id: "fr/buttons.md",
+"fr/buttons.mdx": {
+ id: "fr/buttons.mdx",
slug: "fr/buttons",
body: string,
collection: "fragments",
data: InferEntrySchema<"fragments">
},
-"fr/image-full.md": {
- id: "fr/image-full.md",
+"fr/image-full.mdx": {
+ id: "fr/image-full.mdx",
slug: "fr/image-full",
body: string,
collection: "fragments",
diff --git a/src/data/HP/en/03-about.md b/src/data/HP/en/03-about.md
index d26d7a5..21a2a66 100644
--- a/src/data/HP/en/03-about.md
+++ b/src/data/HP/en/03-about.md
@@ -23,4 +23,4 @@ In order to strengthen my skills, I have completed the following training and ce
I try to contribute to [open source projects](https://git.nardu.in/explore/repos) that I enjoy.
-Oh and I write [articles!](/en/articles/) Articles about design and the web in general.
+Oh and I write [articles!](/en/articles) Articles about design and the web in general.
diff --git a/src/data/HP/fr/03-about.md b/src/data/HP/fr/03-about.md
index 2d31023..3c82baa 100644
--- a/src/data/HP/fr/03-about.md
+++ b/src/data/HP/fr/03-about.md
@@ -23,4 +23,4 @@ Afin de solidifier mes compétences, j'ai suivi les formations et passé les cer
J’essaie de contribuer à des [projets open source](https://git.nardu.in/explore/repos) qui me tiennent à cœur et je m'engage localement avec le collectif [good-it!](https://www.good-it.org/)
-Ah et j’écris [des articles](/articles/) aussi ! Des articles sur le design, le développement web et l’informatique.
+Ah et j’écris [des articles](/articles) aussi ! Des articles sur le design, le développement web et l’informatique.
diff --git a/src/pages/articles/index.astro b/src/pages/articles/index.astro
index c328225..6536934 100644
--- a/src/pages/articles/index.astro
+++ b/src/pages/articles/index.astro
@@ -9,7 +9,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
import ListCards from "../../components/ListCards.astro";
const localizedPost = await getCollection("articles", ({ data }) => {
- return data.lang === astroI18n.langCode;
+ return data.lang === astroI18n.langCode && !data.draft;
});
// sort articles by descending publication date
const sortedArticles = localizedPost.sort(
diff --git a/src/pages/en/sitemap.astro b/src/pages/en/sitemap.astro
new file mode 100644
index 0000000..7d56647
--- /dev/null
+++ b/src/pages/en/sitemap.astro
@@ -0,0 +1,7 @@
+---
+import Page from "../plan-du-site.astro"
+
+const { props } = Astro
+---
+
+
\ No newline at end of file
diff --git a/src/pages/fragments/index.astro b/src/pages/fragments/index.astro
index eb2575b..4bf18a9 100644
--- a/src/pages/fragments/index.astro
+++ b/src/pages/fragments/index.astro
@@ -9,7 +9,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
import ListCards from "../../components/ListCards.astro";
const localizedPost = await getCollection("fragments", ({ data }) => {
- return data.lang === astroI18n.langCode;
+ return data.lang === astroI18n.langCode && !data.draft;
});
// sort snippets by descending publication date
const sortedPosts = localizedPost.sort(
diff --git a/src/pages/i18n/en.json b/src/pages/i18n/en.json
index 00d4df0..c7a7ecd 100644
--- a/src/pages/i18n/en.json
+++ b/src/pages/i18n/en.json
@@ -4,7 +4,7 @@
"quoi": "I design websites and web applications following accessibility best practices.",
"comment": "More precisely, I create web and mobile interfaces. From UX to UI, from development to deployment. I put digital accessibility standards, for which I have obtained the Opquast certification, forwards. I also keep eco-design in mind when working.",
"opensource": "I try to contribute to open source projects that I enjoy.",
- "writing": "Oh and I write articles! Articles about design and the web in general.",
+ "writing": "Oh and I write articles! Articles about design and the web in general.",
"latestProjects": "Latest projects",
"latestArticles": "Latest articles",
"allProjects": "All projects",
diff --git a/src/pages/i18n/fr.json b/src/pages/i18n/fr.json
index b8d1cc5..407796f 100644
--- a/src/pages/i18n/fr.json
+++ b/src/pages/i18n/fr.json
@@ -1,10 +1,10 @@
{
- "title": "Création de sites websobres et accessibles",
+ "title": "Création de sites websobres et accessibles",
"subtitle": "Apprenez-en plus sur…",
"quoi": "Je crée des sites et des applications web en suivant les bonnes pratiques d’accessibilités.",
"comment": "Plus précisément, je crée des interfaces web et mobiles. De l’ergonomie jusqu’au design final, de l’intégration jusqu’à la mise en ligne. Je mets en avant les standards d’accessibilité numérique, pour lesquels j’ai obtenu la certification Opquast. Je m’inscris également dans une démarche d’éco-conception des services que je propose.",
"opensource": "J’essaie de contribuer à des projets open source qui me tiennent à cœur.",
- "writing": "Ah et j’écris des articles aussi ! Des articles sur le graphisme et l’informatique.",
+ "writing": "Ah et j’écris des articles aussi ! Des articles sur le graphisme et l’informatique.",
"latestProjects": "Derniers projets",
"latestArticles": "Derniers articles",
"allProjects": "Tous les projets",
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 862a052..57ecd3a 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -21,7 +21,7 @@ const localizedSections = allSections.filter((section) => {
import { getCollection } from "astro:content";
// Only return posts with correct lang in the frontmatter
const localizedArticles = await getCollection("articles", ({ data }) => {
- return data.lang === astroI18n.langCode;
+ return data.lang === astroI18n.langCode && !data.draft;
});
// sort articles by descending publication date
const sortedArticles = localizedArticles.sort(
@@ -29,7 +29,7 @@ const sortedArticles = localizedArticles.sort(
);
// Only return snippets with correct lang in the frontmatter
const localizedSnippets = await getCollection("fragments", ({ data }) => {
- return data.lang === astroI18n.langCode;
+ return data.lang === astroI18n.langCode && !data.draft;
});
// sort articles by descending publication date
const sortedSnippets = localizedSnippets.sort(
diff --git a/src/pages/plan-du-site.astro b/src/pages/plan-du-site.astro
new file mode 100644
index 0000000..1feacde
--- /dev/null
+++ b/src/pages/plan-du-site.astro
@@ -0,0 +1,82 @@
+---
+// init i18n
+import { l, t, astroI18n } from "astro-i18n";
+astroI18n.init(Astro);
+
+import BaseLayout from "../layouts/BaseLayout.astro";
+
+// New astro content collections
+import { getCollection } from "astro:content";
+
+// get all articles
+const localizedArticles = await getCollection("articles", ({ data }) => {
+ return data.lang === astroI18n.langCode && !data.draft;
+});
+// get all snippets
+const localizedFragments = await getCollection("fragments", ({ data }) => {
+ return data.lang === astroI18n.langCode && !data.draft;
+});
+
+const pageTitle = t("sitemap");
+---
+
+
+
+