mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Basic example of multilingual
This commit is contained in:
parent
7761676dee
commit
80bfed631f
@ -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
|
||||||
|
14
exampleSite/content/fr/contact.md
Normal file
14
exampleSite/content/fr/contact.md
Normal 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" >}}
|
Loading…
x
Reference in New Issue
Block a user