Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 20, 2024
1 parent 28bca41 commit cd283bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function hfun_blogposts()
ps = splitext(post)[1]
url = "/blog/$ys/$ms/$ps/"
surl = strip(url, '/')
# Franklin.pagevar appears to be an internal function that has a guard against
# recurisive overflow so we need to reset the counter to 0, otherwise we cannot read
# pagevars for all pages.
Franklin.PAGEVAR_DEPTH[] = 0
title = pagevar(surl, :title; default="Untitled")
pubdate = pagevar(surl, :published)
if isnothing(pubdate)
Expand Down

0 comments on commit cd283bc

Please sign in to comment.