diff options
author | Mihail Cristian Dumitru <doomyxx@gmail.com> | 2018-07-08 13:58:19 +0300 |
---|---|---|
committer | Mihail Cristian Dumitru <doomyxx@gmail.com> | 2018-07-08 13:58:19 +0300 |
commit | b59661e897139c567d8657374cbb4caa510748c2 (patch) | |
tree | e91cb2b98f52e9d83ccf289229d540a9a71cc482 | |
parent | 8233289791bd890ee01c5b39f0174975ee6937ab (diff) |
Fixed `defaultContentLanguage`v0.100.2
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | exampleSite/content/_index.en.md (renamed from exampleSite/content/_index.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/about.en.md (renamed from exampleSite/content/about.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/about.fr.md | 20 | ||||
-rw-r--r-- | exampleSite/content/post/creating-a-new-theme.en.md (renamed from exampleSite/content/post/creating-a-new-theme.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/goisforlovers.en.md (renamed from exampleSite/content/post/goisforlovers.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/hugoisforlovers.en.md (renamed from exampleSite/content/post/hugoisforlovers.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/migrate-from-jekyll.en.md (renamed from exampleSite/content/post/migrate-from-jekyll.md) | 0 |
8 files changed, 22 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b86e4b4..b3fcd87 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,7 @@ baseurl = "https://example.com/" -languageCode = "en-us" title = "Material Blog" +languageCode = "en-us" +defaultContentLanguage = "en" # Pagination paginate = 3 @@ -16,9 +17,6 @@ copyright = "© 2014 Copyright Text" [permalinks] post = "/:year/:month/:title/" -# Localization -defaultContentLanguage = "en" - # English [languages.en] languageName = "English" diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.en.md index 80c8a80..80c8a80 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.en.md diff --git a/exampleSite/content/about.md b/exampleSite/content/about.en.md index 4779a58..4779a58 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.en.md diff --git a/exampleSite/content/about.fr.md b/exampleSite/content/about.fr.md new file mode 100644 index 0000000..4779a58 --- /dev/null +++ b/exampleSite/content/about.fr.md @@ -0,0 +1,20 @@ +--- +title: "About Hugo" +date: "2014-04-09" +menu: "main" +author: "John Doe" +cover_image: "images/image1.jpeg" +--- + +Hugo is the **world’s fastest framework for building websites**. It is written in Go. + +It makes use of a variety of open source projects including: + +* https://github.com/russross/blackfriday +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Learn more and contribute on [GitHub](https://github.com/gohugoio). + diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/post/creating-a-new-theme.en.md index b7691af..b7691af 100644 --- a/exampleSite/content/post/creating-a-new-theme.md +++ b/exampleSite/content/post/creating-a-new-theme.en.md diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/post/goisforlovers.en.md index 7e10355..7e10355 100644 --- a/exampleSite/content/post/goisforlovers.md +++ b/exampleSite/content/post/goisforlovers.en.md diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/post/hugoisforlovers.en.md index 32d9b93..32d9b93 100644 --- a/exampleSite/content/post/hugoisforlovers.md +++ b/exampleSite/content/post/hugoisforlovers.en.md diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/post/migrate-from-jekyll.en.md index f4ac3f8..f4ac3f8 100644 --- a/exampleSite/content/post/migrate-from-jekyll.md +++ b/exampleSite/content/post/migrate-from-jekyll.en.md |