From b3d783e946964c77ac0e41331be2dfe57ba7a9b2 Mon Sep 17 00:00:00 2001 From: matcornic Date: Sun, 20 Aug 2017 23:03:07 +0200 Subject: [PATCH] translation of children shortcode --- .../children/{_index.md => _index.en.md} | 0 .../content/shortcodes/children/_index.fr.md | 45 +++++++++++++++++++ .../children-1/{_index.md => _index.en.md} | 0 .../children/children-1/_index.fr.md | 6 +++ .../children-1-1/{_index.md => _index.en.md} | 0 .../children-1/children-1-1/_index.fr.md | 6 +++ .../{_index.md => _index.en.md} | 0 .../children-1-1/children-1-1-1/_index.fr.md | 6 +++ .../{_index.md => _index.en.md} | 0 .../children-1-1-1-1/_index.fr.md | 6 +++ .../{_index.md => _index.en.md} | 0 .../children-1-1-1-1-1/_index.fr.md | 6 +++ .../children-2/{_index.md => _index.en.md} | 0 .../children/children-2/_index.fr.md | 11 +++++ .../children-2/{test3.md => test3.en.md} | 0 .../children/children-2/test3.fr.md | 6 +++ .../children-3/{_index.md => _index.en.md} | 2 +- .../children/children-3/_index.fr.md | 6 +++ .../children-4/{_index.md => _index.en.md} | 2 +- .../children/children-4/_index.fr.md | 7 +++ .../children/{test.md => test.en.md} | 0 .../content/shortcodes/children/test.fr.md | 6 +++ 22 files changed, 113 insertions(+), 2 deletions(-) rename exampleSite/content/shortcodes/children/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/_index.fr.md rename exampleSite/content/shortcodes/children/children-1/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-1/_index.fr.md rename exampleSite/content/shortcodes/children/children-1/children-1-1/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-1/children-1-1/_index.fr.md rename exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.fr.md rename exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.fr.md rename exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.fr.md rename exampleSite/content/shortcodes/children/children-2/{_index.md => _index.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-2/_index.fr.md rename exampleSite/content/shortcodes/children/children-2/{test3.md => test3.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/children-2/test3.fr.md rename exampleSite/content/shortcodes/children/children-3/{_index.md => _index.en.md} (56%) create mode 100644 exampleSite/content/shortcodes/children/children-3/_index.fr.md rename exampleSite/content/shortcodes/children/children-4/{_index.md => _index.en.md} (89%) create mode 100644 exampleSite/content/shortcodes/children/children-4/_index.fr.md rename exampleSite/content/shortcodes/children/{test.md => test.en.md} (100%) create mode 100644 exampleSite/content/shortcodes/children/test.fr.md diff --git a/exampleSite/content/shortcodes/children/_index.md b/exampleSite/content/shortcodes/children/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/_index.md rename to exampleSite/content/shortcodes/children/_index.en.md diff --git a/exampleSite/content/shortcodes/children/_index.fr.md b/exampleSite/content/shortcodes/children/_index.fr.md new file mode 100644 index 0000000000..672c5ad614 --- /dev/null +++ b/exampleSite/content/shortcodes/children/_index.fr.md @@ -0,0 +1,45 @@ +--- +title : Children (Pages filles) +description : Liste les pages filles de la page +--- + +Utilisez le shortcode *children* pour lister les pages filles de la page et tous ses déscendants (pages filles de pages filles). Par défaut, le shortcode affiche des liens vers les pages filles. + +## Utilisation + +| Paramètre | Défaut | Description | +|:--|:--|:--| +| page | _current_ | Spécifie le nom de la page (nom de la section) à afficher | +| style | "li" | Choisi le style à utiliser pour afficher les descendants. Cela peut être n'importe quel balise HTML | +| showhidden | "false" | Quand *true*, pages filles cachées dans le menu seront affichées quand même | +| description | "false" | Permet d'inclure le texte de la description de la page sous chaque entré de la liste.
quand aucune description existe pour la page, le shortcode prend les 70 premiers mots du contenu. [plus d'infos sur gohugo.io](https://gohugo.io/content/summaries/) | +| depth | 1 | Nombre de descendants à afficher. Par exemple, si la valeur est 2, le shortcode va afficher 2 niveaux de pages filels.
**Astuce:** Utilisez 999 pour avoir tous les descendants| +| sort | | Tri les pages filles par
  • Weight - Poids
  • Name - Nom
  • Identifier - Trier alphabétiquement par identifiant configuré dans le front matter
  • URL - URL
  • | + +## Démo + + {{%/* children */%}} + +{{% children %}} + + {{%/* children description="true" */%}} + +{{%children description="true" %}} + + {{%/* children depth="3" showhidden="true" */%}} + +{{% children depth="3" showhidden="true" %}} + + {{%/* children style="h2" depth="3" description="true" */%}} + +{{% children style="h2" depth="3" description="true" %}} + + {{%/* children style="div" depth="999" */%}} + +{{% children style="div" depth="999" %}} + + + + + + diff --git a/exampleSite/content/shortcodes/children/children-1/_index.md b/exampleSite/content/shortcodes/children/children-1/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-1/_index.md rename to exampleSite/content/shortcodes/children/children-1/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-1/_index.fr.md b/exampleSite/content/shortcodes/children/children-1/_index.fr.md new file mode 100644 index 0000000000..7737f5034a --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-1/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 1" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md rename to exampleSite/content/shortcodes/children/children-1/children-1-1/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.fr.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.fr.md new file mode 100644 index 0000000000..e39cb5828b --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 1-1" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md rename to exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.fr.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.fr.md new file mode 100644 index 0000000000..31d2cd1189 --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 1-1-1" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md rename to exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.fr.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.fr.md new file mode 100644 index 0000000000..3b0f7f0962 --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 1-1-1-1" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md rename to exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.fr.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.fr.md new file mode 100644 index 0000000000..5a1961725a --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 1-1-1-1-1" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-2/_index.md b/exampleSite/content/shortcodes/children/children-2/_index.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-2/_index.md rename to exampleSite/content/shortcodes/children/children-2/_index.en.md diff --git a/exampleSite/content/shortcodes/children/children-2/_index.fr.md b/exampleSite/content/shortcodes/children/children-2/_index.fr.md new file mode 100644 index 0000000000..a96140c255 --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-2/_index.fr.md @@ -0,0 +1,11 @@ ++++ +title = "page 2" +description = "" ++++ + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-2/test3.md b/exampleSite/content/shortcodes/children/children-2/test3.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/children-2/test3.md rename to exampleSite/content/shortcodes/children/children-2/test3.en.md diff --git a/exampleSite/content/shortcodes/children/children-2/test3.fr.md b/exampleSite/content/shortcodes/children/children-2/test3.fr.md new file mode 100644 index 0000000000..6d649e8079 --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-2/test3.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page test 3" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo test 3 \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-3/_index.md b/exampleSite/content/shortcodes/children/children-3/_index.en.md similarity index 56% rename from exampleSite/content/shortcodes/children/children-3/_index.md rename to exampleSite/content/shortcodes/children/children-3/_index.en.md index 4e3d4237ad..f36f8616e6 100644 --- a/exampleSite/content/shortcodes/children/children-3/_index.md +++ b/exampleSite/content/shortcodes/children/children-3/_index.en.md @@ -3,4 +3,4 @@ title = "page 3" description = "This is a demo child page" +++ -This is a demo child page \ No newline at end of file +This is a demo child page, not displayed in the menu \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-3/_index.fr.md b/exampleSite/content/shortcodes/children/children-3/_index.fr.md new file mode 100644 index 0000000000..1501cc82bc --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-3/_index.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page 3" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-4/_index.md b/exampleSite/content/shortcodes/children/children-4/_index.en.md similarity index 89% rename from exampleSite/content/shortcodes/children/children-4/_index.md rename to exampleSite/content/shortcodes/children/children-4/_index.en.md index 26e88f729a..b9f042d811 100644 --- a/exampleSite/content/shortcodes/children/children-4/_index.md +++ b/exampleSite/content/shortcodes/children/children-4/_index.en.md @@ -1,7 +1,7 @@ +++ title = "page 4" description = "This is a demo child page" -hidden=true +hidden = true +++ This is a demo child page, not displayed in the menu \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/children-4/_index.fr.md b/exampleSite/content/shortcodes/children/children-4/_index.fr.md new file mode 100644 index 0000000000..6735e50417 --- /dev/null +++ b/exampleSite/content/shortcodes/children/children-4/_index.fr.md @@ -0,0 +1,7 @@ ++++ +title = "page 4" +description = "Ceci est une page test" +hidden = true ++++ + +Ceci est une page de demo \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/test.md b/exampleSite/content/shortcodes/children/test.en.md similarity index 100% rename from exampleSite/content/shortcodes/children/test.md rename to exampleSite/content/shortcodes/children/test.en.md diff --git a/exampleSite/content/shortcodes/children/test.fr.md b/exampleSite/content/shortcodes/children/test.fr.md new file mode 100644 index 0000000000..dd6cc3c3ee --- /dev/null +++ b/exampleSite/content/shortcodes/children/test.fr.md @@ -0,0 +1,6 @@ ++++ +title = "page test" +description = "Ceci est une page test" ++++ + +Ceci est une page de demo \ No newline at end of file