Language structure of scr files #56
Replies: 2 comments 4 replies
-
|
I'm new to eleventy so have to familiarize with posts/pages metadata (Front matter in Jekyll if you will). Using the file names only in a folder structure could work out for testing purposes but I did appreciate having the ref tag in Jekyll, linking two pages with the same ref regardless of the filename. The other thing I noticed is we currently have the en/fr toggle but the rest of the URL isn't bilingual itself. (Not sure if we feel like tackling in a separate issue?) |
Beta Was this translation helpful? Give feedback.
-
|
Having used both Jekyll and 11ty, you can pretty much do all the same things except instead of using Ruby Gems, I would think you would use NodeJS packages. I wonder if we can use one source file and add both languages in the source, but have 11ty create two separate files in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@duboisp @gcharest @CalvinRodo
I followed this post:
Multilingual sites with Eleventy
I'm using the same file name for both languages, it was easier for me to set using the locale variable.
https://github.com/gc-da11yn/gc-da11yn.github.io/blob/main/src/_includes/partials/header.njk#L1
Which is used:
We could
Beta Was this translation helpful? Give feedback.
All reactions