mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Adam Chlan
11.16.2021 80bfed631f08e9071031e6b9380f45524c88f0b9
Basic example of multilingual
1 files modified
1 files added
10 files renamed
24 ■■■■■ changed files
exampleSite/config.toml 10 ●●●●● patch | view | raw | blame | history
exampleSite/content/en/_index.md patch | view | raw | blame | history
exampleSite/content/en/about/_index.md patch | view | raw | blame | history
exampleSite/content/en/contact.md patch | view | raw | blame | history
exampleSite/content/en/post/_index.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-1.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-2.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-3.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-4.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-5.md patch | view | raw | blame | history
exampleSite/content/en/post/chapter-6.md patch | view | raw | blame | history
exampleSite/content/fr/contact.md 14 ●●●●● patch | view | raw | blame | history
exampleSite/config.toml
@@ -10,6 +10,16 @@
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
exampleSite/content/en/_index.md
exampleSite/content/en/about/_index.md
exampleSite/content/en/contact.md
exampleSite/content/en/post/_index.md
exampleSite/content/en/post/chapter-1.md
exampleSite/content/en/post/chapter-2.md
exampleSite/content/en/post/chapter-3.md
exampleSite/content/en/post/chapter-4.md
exampleSite/content/en/post/chapter-5.md
exampleSite/content/en/post/chapter-6.md
exampleSite/content/fr/contact.md
New file
@@ -0,0 +1,14 @@
---
title: Contact
featured_image: "images/notebook.jpg"
omit_header_text: true
description: We'd love to hear from you
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"  >}}