Git Product home page Git Product logo

Comments (8)

kellertuer avatar kellertuer commented on June 10, 2024 1

Ah, works great! Thanks for finding that out.

from franklin.jl.

kellertuer avatar kellertuer commented on June 10, 2024

Addon: As far as I can see, there seems to be an upper bound of variables being loaded? It always affects the last two files in the folder.

If I rename, e.g. graph-laplace.md to xgraphlaplace.md it is the one without pagervars. So is there maybe an global user bound how many can be accessed also maybe in the one loop that I do?

edit: Now I am super confused. I thought: Well. If loading all is maybe too much, let ยด's do the loading of page variables per single page and maybe that works. That worked perfectly in the running session when I developed that. But once I restarted Julia now the single-load parts always and only read nothings. So I think I have a major misunderstanding (after about 8 years of using them) how page-vars load an how they can be accessed.

edit2: Ah. It nothings on first run, but if I change the file while the life-server is running (the utils.jl that is) it works fine.

So. After so much time of debugging. Why is that the case? And how can I access pagevars in an hfun function already on first run?

edit3: Surprisingly (I left in a bit of debug) it works fine on CI. Seems to me like the page-vars are maybe loaded in parallel or so? See this debug https://github.com/kellertuer/kellertuer.github.io/actions/runs/8176798601/job/22357013932#step:5:374 where all pagevars are displayed nicely. Locally I loose most of them, sometimes only the last (now its the oldest projects, since I sort first before accessing them now). Currently the last 2. But as soon as Franklin reloads on LIveServer all is fine.

Sorry to not being able to narrow it down further. But if possible, that loading pagevars could be finished before calling any hfun_ that would be great :)

from franklin.jl.

bhvieira avatar bhvieira commented on June 10, 2024

I have been suffering from something similar for a while now. At https://bhvieira.github.io/blog/ in the deployment the pagevars for posts from 2020 are not retrieved correctly (this works flawlessly in local)

from franklin.jl.

bhvieira avatar bhvieira commented on June 10, 2024

This was corrected with a @delay macro

from franklin.jl.

kellertuer avatar kellertuer commented on June 10, 2024

Can you make that a bit more precise where you put that and how @delay works there?

from franklin.jl.

bhvieira avatar bhvieira commented on June 10, 2024

See https://github.com/bhvieira/bhvieira.github.io/blob/f18577b8cd749ceb6002171edfc7b30ce4af9526/utils.jl#L26

from franklin.jl.

kellertuer avatar kellertuer commented on June 10, 2024

Thanks, will try that on my function later as well then.

from franklin.jl.

bhvieira avatar bhvieira commented on June 10, 2024

Glad to hear!

from franklin.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.