Skip to content

Commit

Permalink
closes 1008, url_curpage should check keep_path (#1009)
Browse files Browse the repository at this point in the history
* closes 1008, url_curpage should check keep_path

* make it a patch release
  • Loading branch information
tlienart authored Apr 18, 2023
1 parent 154f553 commit caa1518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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.80"
version = "0.10.81"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
6 changes: 5 additions & 1 deletion src/utils/html.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ Helper function to get the relative url of the current page.
"""
function url_curpage()
# get the relative path to current page and split extension (.md)
fn, ext = splitext(locvar(:fd_rpath))
rpath = locvar(:fd_rpath)
keep = globvar(:keep_path)::Vector{String}
rpath in keep && return rpath

fn, ext = splitext(rpath)
if ext != ".html"
# if it's not `index` then add `index`:
if splitdir(fn)[2] != "index"
Expand Down

2 comments on commit caa1518

@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/81802

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.81 -m "<description of version>" caa1518240ccff7f629d077d72eb65a09515b64f
git push origin v0.10.81

Please sign in to comment.