-
-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
Describe the issue
The recent posts under https://fluxml.ai/blog/ are generated by an hfun in Franklin.jl. The title is set to a page environment variable unless it is unspecified, in which case it gets a generic name like "Post 10". Currently, all blog posts have titles, but not all of them are generated correctly by the hfun.
To Reproduce
Steps to reproduce the behavior (include links to pages or assets):
- "Post 10" https://fluxml.ai/blog/ on corresponds to https://fluxml.ai/blogposts/2021-12-1-flux-numfocus/
- In the source for the post, the
titleenvironment variable is set - The
hfunwill read the environment variable and give a default if it is nothing:(currently that is what it is doing)Line 15 in 660e649
titles[i] = something(pagevar(url, :title), "Post $i") - If you remove the
somethinglogic from the code, then you get an error about assigningNothingto aVector{String}, confirming thatpagevar(url, :title)is returningnothingwhen it should return the title set in Step 2.
Step 4 makes me think this is Franklin issue @tlienart.
Desktop (please complete the following information):
- Browser: All
- Mobile or desktop (specify OS)? Both
Metadata
Metadata
Assignees
Labels
No labels