Closed me0wday closed 6 years ago
Hello, Thanks,
It is totally doable to use the _data
folder.
Two alternative solutions:
_i18n
folder.i18n
plugin and folder.The first solution is the fastest.
To delete the i18n plugin here is the process:
gem 'jekyll-multiple-languages-plugin'
from Gemfile
.- jekyll-multiple-languages-plugin
from _config
._i18n
folder.{% t variable_name %}
from the _include
and _layout
folders (so footer.html
, 'home.html', and maybe some others)about.md
npm start
and check the logs it will tell you if the {% t variable_name %}
tag is still somewhere elseI tried solution 1, however none of my site.data variables are being read when placing yml files in the _data folder?
(I did also do Solution 2, which was fine to remove the plugin, however I ran into this issue because I needed to use data variables instead)
Tried again with a fresh pull, followed the process and added the _data folder, but variables aren't being read.
jekyll serve
to only see jekyll related errors{{ site.data.file_name.variable_path }}
) ? Here is an example below.
# For a file called strings.yml in the folder _data
header:
title: Hello world
Thanks mate, not sure what was happening but it's working now :) appreciate the help.
Is there any way that I could contact you privately? Just after some tips if you have the time.
You're welcome. I just created a telegram group: https://t.me/JekyllWebpack
Hello, this is great and I am attempting to start a website with it, my only concern is how can I use the standard jekyll _data folder for common variables?
I attempted to remove the language plugin but got a bit lost after this as it wasn't reading the data folder so I was left without the yml files.