Comments (4)
Hello Simon, thanks for the nice description and nice blog, seems like we share some common interests.
In this case, using @delay
in front of the definition of hfun_post
should help so in your utils.jl
:
@delay hfun_post(...)
# rest of the function as you had it
end
This @delay
thing is annoying and the next version of Franklin drops it (this is in beta at Xranklin.jl, you could already use it if you wanted to). It was added a while ago to ensure that all pages are processed before the hfun is executed (basically so that the hfun is guaranteed to have access to the full state). It's recommended to use it with Franklin 0.10 for any hfun that makes use of pagevar
.
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.
from franklin.jl.
Thanks for the remarkable speed and accuracy of your answer ❤️
So if I understand correctly, without @delay
, the hfun_*
can be executed before some pages are processed ?
from franklin.jl.
There is a catch, however : now with @delay
all the links are broken. I think the pages werent processed ?
EDIT: my bad it was my own mistake :)
from franklin.jl.
So if I understand correctly, without
@delay
, thehfun_*
can be executed before some pages are processed ?
yeah that's right
from franklin.jl.
Related Issues (20)
- No Method for _memcmp HOT 1
- Build site in another folder? HOT 4
- XML prolog lost from RSS template HOT 2
- \toc error HOT 7
- Tag pages don't urlencode their crosslinks
- FR: Button to copy code blocks to clipboard HOT 2
- May insert variable value into a HTML tag attribute? HOT 2
- Does Franklin support Pandoc and MathJax HOT 4
- Deploying with github not working after first commit, getting "there is nothing to commit"
- Option to exclude sidebar contents in lunr search
- Using `python3` as the language of a multiline codeblock results in an error HOT 2
- Demos page leads to 404 HOT 6
- insert not working when using the GitHub actions HOT 1
- Table of contents: level 4 headings do not consistently stay indented under the previous level 3 heading HOT 1
- DataScienceTutorials.jl deployment HOT 1
- Pagevariables not always available? HOT 8
- How to add total words and time for reading in a post HOT 1
- Franklin websites fail to being parsed by openring
- Demos Page Shows 404 Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franklin.jl.