Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/budparr/gohugo-theme-ananke.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Chlan <achlan@gmail.com>2021-01-12 00:42:48 +0300
committerGitHub <noreply@github.com>2021-01-12 00:42:48 +0300
commit23c7cc68470c8daf5b412c6e573ccf769ccd6224 (patch)
tree40647041e8e08fefcaffd2b85a2b8a0d675540ac
parent7761676dee80456f061196faab9da8377b9dfbd1 (diff)
Basic example of multilingual (#386)
* Basic example of multilingual * Add one post and the homepage Co-authored-by: Regis Philibert <login@regisphilibert.com>
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/content/en/_index.md (renamed from exampleSite/content/_index.md)0
-rw-r--r--exampleSite/content/en/about/_index.md (renamed from exampleSite/content/about/_index.md)0
-rw-r--r--exampleSite/content/en/contact.md (renamed from exampleSite/content/contact.md)0
-rw-r--r--exampleSite/content/en/post/_index.md (renamed from exampleSite/content/post/_index.md)0
-rw-r--r--exampleSite/content/en/post/chapter-1.md (renamed from exampleSite/content/post/chapter-1.md)0
-rw-r--r--exampleSite/content/en/post/chapter-2.md (renamed from exampleSite/content/post/chapter-2.md)0
-rw-r--r--exampleSite/content/en/post/chapter-3.md (renamed from exampleSite/content/post/chapter-3.md)0
-rw-r--r--exampleSite/content/en/post/chapter-4.md (renamed from exampleSite/content/post/chapter-4.md)0
-rw-r--r--exampleSite/content/en/post/chapter-5.md (renamed from exampleSite/content/post/chapter-5.md)0
-rw-r--r--exampleSite/content/en/post/chapter-6.md (renamed from exampleSite/content/post/chapter-6.md)0
-rw-r--r--exampleSite/content/fr/_index.md8
-rw-r--r--exampleSite/content/fr/contact.md14
-rw-r--r--exampleSite/content/fr/post/_index.md5
-rw-r--r--exampleSite/content/fr/post/chapter-1.md13
15 files changed, 50 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e614c16..2ca0d5d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -10,6 +10,16 @@ Paginate = 3 # this is set low for demonstrating with dummy content. Set to a hi
googleAnalytics = ""
enableRobotsTXT = true
+[languages]
+ [languages.en]
+ title = "My blog"
+ weight = 1
+ contentDir = "content/en"
+ [languages.fr]
+ title = "Mon blogue"
+ weight = 2
+ contentDir = "content/fr"
+
[sitemap]
changefreq = "monthly"
priority = 0.5
diff --git a/exampleSite/content/_index.md b/exampleSite/content/en/_index.md
index 73c1cda..73c1cda 100644
--- a/exampleSite/content/_index.md
+++ b/exampleSite/content/en/_index.md
diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/en/about/_index.md
index fe404f9..fe404f9 100644
--- a/exampleSite/content/about/_index.md
+++ b/exampleSite/content/en/about/_index.md
diff --git a/exampleSite/content/contact.md b/exampleSite/content/en/contact.md
index 07ae1f5..07ae1f5 100644
--- a/exampleSite/content/contact.md
+++ b/exampleSite/content/en/contact.md
diff --git a/exampleSite/content/post/_index.md b/exampleSite/content/en/post/_index.md
index 434c1e8..434c1e8 100644
--- a/exampleSite/content/post/_index.md
+++ b/exampleSite/content/en/post/_index.md
diff --git a/exampleSite/content/post/chapter-1.md b/exampleSite/content/en/post/chapter-1.md
index ff2a14f..ff2a14f 100644
--- a/exampleSite/content/post/chapter-1.md
+++ b/exampleSite/content/en/post/chapter-1.md
diff --git a/exampleSite/content/post/chapter-2.md b/exampleSite/content/en/post/chapter-2.md
index b3c7d4f..b3c7d4f 100644
--- a/exampleSite/content/post/chapter-2.md
+++ b/exampleSite/content/en/post/chapter-2.md
diff --git a/exampleSite/content/post/chapter-3.md b/exampleSite/content/en/post/chapter-3.md
index cd29cee..cd29cee 100644
--- a/exampleSite/content/post/chapter-3.md
+++ b/exampleSite/content/en/post/chapter-3.md
diff --git a/exampleSite/content/post/chapter-4.md b/exampleSite/content/en/post/chapter-4.md
index f49d937..f49d937 100644
--- a/exampleSite/content/post/chapter-4.md
+++ b/exampleSite/content/en/post/chapter-4.md
diff --git a/exampleSite/content/post/chapter-5.md b/exampleSite/content/en/post/chapter-5.md
index e0f5d28..e0f5d28 100644
--- a/exampleSite/content/post/chapter-5.md
+++ b/exampleSite/content/en/post/chapter-5.md
diff --git a/exampleSite/content/post/chapter-6.md b/exampleSite/content/en/post/chapter-6.md
index 4750783..4750783 100644
--- a/exampleSite/content/post/chapter-6.md
+++ b/exampleSite/content/en/post/chapter-6.md
diff --git a/exampleSite/content/fr/_index.md b/exampleSite/content/fr/_index.md
new file mode 100644
index 0000000..7ac9ae9
--- /dev/null
+++ b/exampleSite/content/fr/_index.md
@@ -0,0 +1,8 @@
+---
+title: "Ananke: Un thème pour Hugo"
+featured_image: '/images/gohugo-default-sample-hero-image.jpg'
+description: "Le dernier thème dont vous aurez besoin. Peut-être"
+---
+Bienvenu sur mon blog!
+
+Vous pouvez lire mes idées de publication plus bas.
diff --git a/exampleSite/content/fr/contact.md b/exampleSite/content/fr/contact.md
new file mode 100644
index 0000000..75eb5d2
--- /dev/null
+++ b/exampleSite/content/fr/contact.md
@@ -0,0 +1,14 @@
+---
+title: Contact
+featured_image: "images/notebook.jpg"
+omit_header_text: true
+description: Laissez-nous un message!
+type: page
+menu: main
+
+---
+
+
+This is the French contact page. This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
+
+{{< form-contact action="https://example.com" >}}
diff --git a/exampleSite/content/fr/post/_index.md b/exampleSite/content/fr/post/_index.md
new file mode 100644
index 0000000..602d614
--- /dev/null
+++ b/exampleSite/content/fr/post/_index.md
@@ -0,0 +1,5 @@
+---
+title: "Articles"
+date: 2017-03-02T12:00:00-05:00
+---
+Exemple de liste d'article français. \ No newline at end of file
diff --git a/exampleSite/content/fr/post/chapter-1.md b/exampleSite/content/fr/post/chapter-1.md
new file mode 100644
index 0000000..2e12724
--- /dev/null
+++ b/exampleSite/content/fr/post/chapter-1.md
@@ -0,0 +1,13 @@
+---
+date: 2017-04-09T10:58:08-04:00
+description: "La grande halle"
+featured_image: "/images/Pope-Edouard-de-Beaumont-1844.jpg"
+tags: ["scene"]
+title: "Chapitre I: La grande halle"
+---
+
+Généralement, on utilise un texte en faux latin (le texte ne veut rien dire, il a été modifié), le Lorem ipsum ou Lipsum, qui permet donc de faire office de texte d'attente. L'avantage de le mettre en latin est que l'opérateur sait au premier coup d'oeil que la page contenant ces lignes n'est pas valide, et surtout l'attention du client n'est pas dérangée par le contenu, il demeure concentré seulement sur l'aspect graphique.
+
+Ce texte a pour autre avantage d'utiliser des mots de longueur variable, essayant de simuler une occupation normale. La méthode simpliste consistant à copier-coller un court texte plusieurs fois (« ceci est un faux-texte ceci est un faux-texte ceci est un faux-texte ceci est un faux-texte ceci est un faux-texte ») a l'inconvénient de ne pas permettre une juste appréciation typographique du résultat final.
+
+Il circule des centaines de versions différentes du Lorem ipsum, mais ce texte aurait originellement été tiré de l'ouvrage de Cicéron, De Finibus Bonorum et Malorum (Liber Primus, 32), texte populaire à cette époque, dont l'une des premières phrases est : « Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... » (« Il n'existe personne qui aime la souffrance pour elle-même, ni qui la recherche ni qui la veuille pour ce qu'elle est... »). \ No newline at end of file