Skip to content

Commit

Permalink
multilingual: Update Example Site and Theme.toml (#123)
Browse files Browse the repository at this point in the history
* content-list modified summary as recommended by yihui

* Rename layout index.html > old.html

* Add .gitignore

* Add language switcher

* Add language switch in articles headers with flags.

* Add flags to main language switcher

* relative language links in sidebar and navbar

* Example of multiple language Menu in config.toml

* Example of menu translation

* Translate text content using i18n folder and languages files

* Update readme for multinlingual

* Get back to index.html

* Add googlescholar, orcid, researchgate with academicons in social links

* clean translation_link.html

* Corrected header for customCSS

* Contact form multilanguage

* Add title on hover to featured images

* Added tags to posts footer

* More copyright in config and sidebar

* Modified Flag of current language on article

* Make flag appear even if only one language

* Allow multilanguage for category in post footer

* Allow translation in contact form. Added contact lang for translated formspree automatic emails.

* Corrected contact example in exampleSite

* Added missing safeHTML in params.intro .paragraph

* Added multilingual condition to show flag in post header as for sidebar

* Added translations in i18n for 'Uncategorized' posts

* Added possibility for 'Uncategorized' translation

* Added flags and translations i18n in exampleSite

* Add gitignore

* Moved language switcher in navigation bar (display>736px)

* flags for devices < 736px

* changed flag size

* flags when no translation for the current page

* Add special case when only two languages

* Corrected h3 tag

* Language defined datetype format in mini posts

* Multilanguage for footer-category. Moved in partial, same for posts and itemized.

* "See_more" multilanguage

* Use relLangURL instead of .Lang

* Precisions for exampleSite and config.toml on multilanguage

* Removed `i18n` and `flags` in exampleSite. There are in the theme directory.

* Corrected error with Lang for category.term list and sidebar

* Added layout for tags

* <p> tag cleaned in category list

* Corrected social share in config.toml

* Corrected multilingual link to about page

* corrected socialshare in config.toml

* Corrected multilingual link to about page in sidebar

* Mobile menu multilingual

* mobile menu multilingual

* Include Quora

* Translate 404 not found page

* Added flag for no translation in 2-lang switcher (css quick & dirty)

* modify researchgate social link

* Revert merge mistake from another branch

* Translate share-menu title

* Translate navbar "recent_post"

* Rename for consistency

* Edit language switcher to be compatible with Chrome and touchscreens

* The angled arrow displayed misaligned in Google Chrome
* Deleted current language hiperlink:
Touch screens (like mobile phones) were not able to use the button
 because tapping on it will refresh the page to the current page

* Add Polish language

* Modify conflicts files with master

* Add last modifications from original repository

* Revert to 45f5d99

* Resolved merge conflict by incorporating both suggestions.

* relLangURL for sidebar pic

* Corrected 404 for translation

* Revert to 46339c5

* Modified absLangURL by relLangURL

* Delete .gitignore

* Delete .gitignore

* Add Missing translations

Pagination translatios
NavBar dynamic titles translations:
  * taxonomies need i18n translation to display "Categories"
translations
  * category taxonomy terms do not need a translation because this will be should be
already translated for each language in their respective *.lang.md file.
Translations to category taxonomy templates

* lowercase next/previous page

* Add tag & tags

* Add tag & tags

* merge rename for consistency

* Update Example Site

* Update Theme Information
  • Loading branch information
pacollins authored Feb 11, 2018
1 parent 9bc101c commit a91e984
Show file tree
Hide file tree
Showing 23 changed files with 3,913 additions and 15 deletions.
73 changes: 65 additions & 8 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pluralizeListTitles = false
highlightjsCDN = "//cdn.bootcss.com"
highlightjsLang = ["r", "yaml", "css"]
highlightjsTheme = "github"

# Disqus will take priority over Staticman (github.com/eduardoboucas/staticman)
# due to its ease of use. Feel free to check out both and decide what you would
# prefer to use. See Staticman.yml for additional settings.
Expand All @@ -74,7 +74,7 @@ pluralizeListTitles = false
[params.intro]
header = "Hugo Future Imperfect"

paragraph = "Another fine responsive site template by <a href=\"http://html5up.net\">HTML5 UP</a>. Ported by Julio Pescador with some extra goodies <i class='fa fa-hand-peace-o'></i>"
paragraph = "Another fine responsive site template by <a href='http://html5up.net'>HTML5 UP</a>. Ported by Julio Pescador with some extra goodies <i class='fa fa-hand-peace-o'></i>"

about = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tellus lacus, auctor vehicula molestie quis, tempor quis velit. Quisque in quam ac leo efficitur vulputate. Phasellus ullamcorper aliquam sodales. Maecenas sit amet condimentum ipsum. Proin sit amet ligula elit. Mauris."

Expand All @@ -98,11 +98,12 @@ DefaultContentLanguage = "en"

[Languages]
[Languages.en]
languageCode = "en"
LanguageName = "English"
title = "Hugo Future Imperfect"
description = "HTML5 UP theme, Future Imperfect with some extra goodies, ported by Julio Pescador. Powered by Hugo"
description = "HTML5 UP theme, Future Imperfect with some extra goodies, ported by Julio Pescador. Multilanguage by StatnMap. Powered by Hugo."
weight = 1

# Sets the menu items in the navigation bar
# Identifier prepends a Font Awesome icon to the menu item
# Each language has its own menu.
Expand All @@ -118,30 +119,49 @@ DefaultContentLanguage = "en"
identifier = "fa fa-id-card-o"
weight = 2

[[Languages.en.menu.main]]
name = "Blog"
url = "/blog/"
identifier = "fa fa-newspaper-o"
weight = 3

[[Languages.en.menu.main]]
name = "Itemized"
url = "/itemized/"
identifier = "fa fa-id-card-o"
weight = 2
weight = 4

[[Languages.en.menu.main]]
name = "Categories"
url = "/categories/"
identifier = "fa fa-sitemap"
weight = 5

[[Languages.en.menu.main]]
name = "Contact"
url = "/contact/"
identifier = "fa fa-envelope-o"
weight = 6

[Languages.fr]
languageCode = "fr"
LanguageName = "Français"
title = "Hugo Future Imperfect in fr"
description = "HTML5 UP theme, Future Imperfect avec quelques extra goodies, porté par Julio Pescador. Multilangues par StatnMap. Powered by Hugo"
description = "HTML5 UP thème, Future Imperfect avec quelques goodies supplémentaires, porté par Julio Pescador. Multilingue par StatnMap. Propulsé par Hugo."
weight = 2

[[Languages.fr.menu.main]]
name = "Accueil"
url = "/"
identifier = "fa fa-home"
weight = 1

[[Languages.fr.menu.main]]
name = "About"
url = "/about/"
identifier = "fa fa-newspaper-o"
weight = 2

[[Languages.fr.menu.main]]
name = "Blog"
url = "/blog/"
Expand All @@ -166,6 +186,43 @@ DefaultContentLanguage = "en"
identifier = "fa fa-envelope-o"
weight = 6

[Languages.pl]
languageCode = "pl"
LanguageName = "Polskie"
title = "Hugo przyszłość niedoskonała"
description = "Motyw HTML5 UP, Future Imperfect z dodatkowymi dodatkami, przeniesiony przez Julio Pescador. Wielojęzyczność według StatnMap. Zasilany przez Hugo."
weight = 2

[[Languages.pl.menu.main]]
name = "Home"
url = "/"
identifier = "fa fa-home"
weight = 1

[[Languages.pl.menu.main]]
name = "Blog"
url = "/blog/"
identifier = "fa fa-newspaper-o"
weight = 2

[[Languages.pl.menu.main]]
name = "O mnie"
url = "/about/"
identifier = "fa fa-id-card-o"
weight = 4

[[Languages.pl.menu.main]]
name = "Kategory"
url = "/categories/"
identifier = "fa fa-sitemap"
weight = 3

[[Languages.pl.menu.main]]
name = "Kontakt"
url = "/contact/"
identifier = "fa fa-envelope-o"
weight = 6

# Sets Social Media icons to appear and link to your account. Value should be your
# username unless otherwise noted. These are the icons affected by socialAppearAtTop
# and socialAppearAtBottom.
Expand Down Expand Up @@ -212,6 +269,6 @@ DefaultContentLanguage = "en"
vine = ""
googlescholar = ""
orcid = ""
researchgate = "example"
researchgate = "example"
# Email
email = "example"
29 changes: 29 additions & 0 deletions exampleSite/content/about/_index.fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
+++
title = "About Hugo"
date = "2014-04-09"
+++

Hugo is a static site engine written in Go.


It makes use of a variety of open source projects including:

* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)

Learn more and contribute on [GitHub](https://github.com/spf13).

## Setup

Some fun facts about [Hugo](http://gohugo.io/):

* Built in [Go](http://golang.org/)
* Loosely inspired by [Jekyll](http://jekyllrb.com/)
* Primarily developed by [spf13](http://spf13.com/) on the train while commuting to and from Manhattan.
* Coded in [Vim](http://vim.org) using [spf13-vim](http://vim.spf13.com/)

Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/spf13/hugo/issues/new) or [ask me on Twitter](https://twitter.com/spf13).

Thanks for reading!
29 changes: 29 additions & 0 deletions exampleSite/content/about/_index.pl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
+++
title = "About Hugo"
date = "2014-04-09"
+++

Hugo is a static site engine written in Go.


It makes use of a variety of open source projects including:

* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)

Learn more and contribute on [GitHub](https://github.com/spf13).

## Setup

Some fun facts about [Hugo](http://gohugo.io/):

* Built in [Go](http://golang.org/)
* Loosely inspired by [Jekyll](http://jekyllrb.com/)
* Primarily developed by [spf13](http://spf13.com/) on the train while commuting to and from Manhattan.
* Coded in [Vim](http://vim.org) using [spf13-vim](http://vim.spf13.com/)

Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/spf13/hugo/issues/new) or [ask me on Twitter](https://twitter.com/spf13).

Thanks for reading!
Loading

0 comments on commit a91e984

Please sign in to comment.