Basic example of multilingual

This commit is contained in:
Adam Chlan 2021-01-11 10:16:11 -05:00
parent 7761676dee
commit 80bfed631f
12 changed files with 24 additions and 0 deletions

View File

@ -10,6 +10,16 @@ Paginate = 3 # this is set low for demonstrating with dummy content. Set to a hi
googleAnalytics = "" googleAnalytics = ""
enableRobotsTXT = true enableRobotsTXT = true
[languages]
[languages.en]
title = "My blog"
weight = 1
contentDir = "content/en"
[languages.fr]
title = "Mon blogue"
weight = 2
contentDir = "content/fr"
[sitemap] [sitemap]
changefreq = "monthly" changefreq = "monthly"
priority = 0.5 priority = 0.5

View 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" >}}