Skip to content

Commit

Permalink
bug fix for fd_page_html
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Sep 22, 2021
1 parent 098d7ec commit 5a2840e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Franklin"
uuid = "713c75ef-9fc9-4b05-94a9-213340da978e"
authors = ["Thibaut Lienart <[email protected]>"]
version = "0.10.56"
version = "0.10.57"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
14 changes: 14 additions & 0 deletions src/converter/markdown/md.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,20 @@ function convert_md(
title = first(values(PAGE_HEADERS))[1]
set_var!(LOCAL_VARS, "title", title)
end

# need to fill in fd_full_url and fd_page_html as in write_page which
# isn't called in the pagevar branch. This needs to happen before the
# ALL_PAGE_VARS copy which is what `pagevar` will query later on.
if pagevar
full_url = joinpath(
locvar(:website_url)::String,
strip(locvar(:fd_url)::String, '/')
)
set_var!(LOCAL_VARS, "fd_full_url", full_url)
ctt = convert_html(hstring)
set_var!(LOCAL_VARS, "fd_page_html", ctt)
end

# Copy vars to allpagevars to make them more easily accessible to other pages
if !(isrecursive || isinternal)
ALL_PAGE_VARS[rpath] = deepcopy(LOCAL_VARS)
Expand Down

2 comments on commit 5a2840e

@tlienart
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/45352

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.57 -m "<description of version>" 5a2840e0c7ab317a9614f386d26600c9b0ad2356
git push origin v0.10.57

Please sign in to comment.