-
Notifications
You must be signed in to change notification settings - Fork 56
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
page.url variable pointing to wrong page (post) #187
Comments
I added some debug code to try to find out what's happening. The page.url variable is always set to the url of the first post and the page.permalink variable is always empty.
results in:
|
Hey there @yonz2 👋 Jekyll uses a default url format based on the post's date and title:
when a permalink is not defined, the url gets inferred like that. that looks like what's happening here. I cannot help you debug markdown specific problems further without access to your repo though. care to share? |
Happy New Year! The repo https://github.com/yonz2/netinnovate is public. This seems to be a general issue with all Here is another debug code: (See:
Results:
The (BTW: I changed the way I'm dealing with the language switcher, but the problem with the Any help will be much appreciated |
So... you're saying you always see Otherwise the |
Hi, the file The output is from
So you can see that both |
Hi, |
I'm not sure I can help ya here, sorry. |
Hi all,
I'm trying to put up a multi-lingual website (initially, bilingual: English and German).
i installed
jekyll-polyglot
, created content pages in both languages, e.g. home-en.md, home-de.md, about-en.md and about-de.md all with front matter set like: (note: I am using the Minimal Mistakes themeI also created a couple of test posts, each with front matter similar to:
Then I copied a simple language switcher from github:
placed it in the
lang-switcher.html
inside the _include directory and included that file in themasthead.html
file in the same directory.This is where the "fun" starts:
When I render my site using
bundle exec jekyll build
thepage.url
variable returns a value pointing to one of the posts. For example this is what's rendered in the German about file at_site/de/about/index.html
:Expected Results:
So here's my question. What can i do to get the correct url in my language switcher?
My Environment:
The text was updated successfully, but these errors were encountered: