Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add i18n #11

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions exampleSite/.forestry/front_matter/templates/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ fields:
label: type
default: post
description: 'type: post or featured'
pages:
- exampleSite/content/post-2-test.md
- exampleSite/content/post-2.md
- exampleSite/content/raquel-test.md
100 changes: 39 additions & 61 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,51 @@
# default config
baseURL = "https://examplesite.org"
baseURL = "https://foodie-quarantine.netlify.com"
languageCode = "en-us"
title = "Parsa Hugo | Personal Blog Template"
theme = "parsa-hugo"
summaryLength = "10"
paginate = 6
<<<<<<< HEAD
DefaultContentLanguage = "en"

# output
=======
summaryLength = "10"
theme = "parsa-hugo"
title = "Foodie In Quarantine"
[[menu.main]]
URL = "about"
name = "About"
weight = 2
[[menu.main]]
URL = "contact"
name = "Contact"
weight = 3
>>>>>>> 0dec695850c41d6f66e11efdd26a02bbd8aed9d1
[outputs]
home = ["HTML", "RSS", "JSON"]

# CSS Plugins
[params]
address = "6 rip carl Avenue CA 90733"
author = "Raquel"
author_image = "images/banner-img.png"
bio = "I’m XXXX"
contact_form_action = "#"
copyright = "Copyright &copy; 2020 a theme by [themefisher.com](themefisher.com)"
description = "This is meta description"
email = "???@??.com"
google_analitycs_id = "Your ID"
home = "Home"
layout = "1"
logo = "images/logo.png"
mobile = "XXXX"
preloader = true
search = true
[params.instafeed]
access_token = "4044026246.1677ed0.8896752506ed4402a0519d23b8f50a17"
enable = true
user_id = "4044026246"
[[params.plugins.css]]
link = "plugins/bootstrap/bootstrap.min.css"
[[params.plugins.css]]
link = "plugins/slick/slick.css"
[[params.plugins.css]]
link = "plugins/themify-icons/themify-icons.css"

# JS Plugins
[[params.plugins.js]]
link = "plugins/jQuery/jquery.min.js"
[[params.plugins.js]]
Expand All @@ -42,65 +68,17 @@ link = "plugins/search/fuse.min.js"
link = "plugins/search/mark.js"
[[params.plugins.js]]
link = "plugins/search/search.js"

# navigation
[[menu.main]]
name = "About"
URL = "about"
weight = 2

[[menu.main]]
name = "Contact"
URL = "contact"
weight = 3

# deult parameter
[params]
logo = "images/logo.png"
home = "Home"
# theme layout ( two layout is available, "1" and "2" )
layout = "1"
# Meta data
description = "This is meta description"
# Preloader
preloader = true
# search
search = true
# about author
author = "Themefisher"
author_image = "images/banner-img.png"
bio = "I’m a Freelance Interactive Art Director based in France. Focusing across branding and identity, digital and print."
# Contact info
mobile = "+90 000 333 22"
email = "[email protected]"
address = "6 rip carl Avenue CA 90733"
# Contact Form Action
contact_form_action = "#"
# Google Analitycs
google_analitycs_id = "Your ID"
# copyright
copyright = "Copyright &copy; 2020 a theme by [themefisher.com](themefisher.com)"

# Instagram feed
[params.instafeed]
enable = true
user_id = "4044026246"
access_token = "4044026246.1677ed0.8896752506ed4402a0519d23b8f50a17"

# social site
[[params.social]]
icon = "ti-facebook"
URL = "#"

icon = "ti-facebook"
[[params.social]]
icon = "ti-twitter-alt"
URL = "#"

icon = "ti-twitter-alt"
[[params.social]]
icon = "ti-linkedin"
URL = "#"

icon = "ti-linkedin"
[[params.social]]
URL = "#"
icon = "ti-github"
URL = "#"

Expand Down
37 changes: 6 additions & 31 deletions exampleSite/content/english/about/_index.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,8 @@
---
title: "About"
date: 2019-05-14T14:46:10+06:00
description: "This is meta description"
image: "images/author.jpg"
---
Creative UI/UX desingerr how loves to craft beautiful that satisfy users needs the product. A best idea
generate for the agency complay smart and elegant design When, while the lovely valley teems with vapour
around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a
few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling
stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me.

I hear the buzz
of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects
and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that
universal love which bears and sustains.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem deserunt tempora doloribus non, voluptas
dolor? Consequuntur et ad officiis iste, vero natus possimus labore veritatis a eius doloremque. Optio amet
quis harum nulla vitae repellat officiis veniam accusamus error hic deleniti in, quas est illum cum natus
neque possimus delectus dolore ipsam. Pariatur, ad molestias alias voluptas iusto quam debitis beatae sint
similique velit, dicta eos dolorum cumque mollitia officia iure labore voluptatibus. Non at sequi, natus
dolores, cum accusamus repudiandae hic blanditiis ipsum possimus qui assumenda quaerat optio ab molestias ipsa
iste molestiae dignissimos. Reprehenderit quod totam nostrum nihil.
title: About
date: 2020-03-16T21:46:10+00:00
description: This is meta description
image: images/author.jpg


Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem deserunt tempora doloribus non, voluptas
dolor? Consequuntur et ad officiis iste, vero natus possimus labore veritatis a eius doloremque. Optio amet
quis harum nulla vitae repellat officiis veniam accusamus error hic deleniti in, quas est illum cum natus
neque possimus delectus dolore ipsam. Pariatur, ad molestias alias voluptas iusto quam debitis beatae sint
similique velit, dicta eos dolorum cumque mollitia officia iure labore voluptatibus. Non at sequi, natus
dolores, cum accusamus repudiandae hic blanditiis ipsum possimus qui assumenda quaerat optio ab molestias ipsa
iste molestiae dignissimos. Reprehenderit quod totam nostrum nihil.
---
Raquel is.... blabla
11 changes: 6 additions & 5 deletions exampleSite/content/english/contact/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "Contact"
date: 2019-05-14T14:46:10+06:00
description: "This is meta description"
image: "images/contact.jpg"
title: Contact
date: 2020-03-16T09:46:10+00:00
description: This is meta description
image: images/contact.jpg

---
Strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream and, as I lie close to the earth, a thousand unknown plants are noticed by me.<br><br>When I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains.
Contact me??
10 changes: 10 additions & 0 deletions exampleSite/content/post-2-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
categories = ["dsasda", ""]
date = 2020-03-15T23:00:00Z
description = "qwdqwdq"
image = "/images/featured-post/post-3.jpg"
tags = []
title = "Post 2"
type = "featured"

+++
10 changes: 10 additions & 0 deletions exampleSite/content/post-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
categories = ["dsasda", ""]
date = 2020-03-15T23:00:00Z
description = "qwdqwdq"
image = "/images/featured-post/post-4.jpg"
tags = []
title = "Post 2"
type = "featured"

+++
13 changes: 13 additions & 0 deletions exampleSite/content/raquel-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
+++
categories = ["cool", "food", "good", "caca"]
date = 2020-03-15T23:00:00Z
description = "This is food"
image = "/images/raquel-foodjpg.jpg"
tags = ["cheese", "whatever"]
title = "Raquel Test"
type = "post"

+++
### Toto

> dasdasdsdasd
Binary file added exampleSite/static/images/raquel-foodjpg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.