-
Notifications
You must be signed in to change notification settings - Fork 115
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
Pagevars are not parsed correctly ? #1054
Comments
Hello Simon, thanks for the nice description and nice blog, seems like we share some common interests. In this case, using
This I just did it in a fork of your blog and you can see that the notes page is generated as expected: The reason why it was working locally and not on gh page is an unfortunate coincidence related to in what order files are browsed. |
Thanks for the remarkable speed and accuracy of your answer ❤️ So if I understand correctly, without |
|
yeah that's right |
Hi, I encounter a bug which is really annoying since it only happens when I deploy on GH pages; on my local machine, everything works well, so it's quite difficult to produce a MWE. I tried to be succinct in explaining the bug.
Context
I have a folder of pages (blogposts) with three local variables defined on each page:
titlepost
,date
andabstract
. For example, a typical header for those pages isIn
utils.jl
I wrote a custom util function namedhfun_post
which takes as argument the name of the page, seeks the local variables, and display a short html snippet with only the title, date and abstract; then on the index page of my blog I have a list, typically the body looks like this:see the resulting page.
In
hfun_post
the local variables of the page atpath
are extracted usingpagevar(path, :titlepost)
for example.Bug description
Unfortunately, some entries are not parsed correctly. More precisely, the local page variables are not correctly extracted and thus the
pagevar
function outputs the default valuenothing
. You can see this behaviour at the end of the page - note that the link itself are correct.What is really strange is that this behaviour seems random. Most of my blogposts are displayed correctly. Only a few ones, usually located at the end of the page, are not correctly parsed.
How could I correct this behaviour ? Any idea why the local vars are not correctly parsed on some pages?
Best,
Simon
The text was updated successfully, but these errors were encountered: