We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a4c0a commit 31d06cdCopy full SHA for 31d06cd
utils.jl
@@ -30,13 +30,13 @@ end
30
Plug in the list of blog posts contained in the `/blog/` folder.
31
"""
32
function hfun_blogposts()
33
- curyear = Dates.Year(Dates.today()).value
+ curyear = year(Dates.today())
34
io = IOBuffer()
35
for year in curyear:-1:2012
36
ys = "$year"
37
year < curyear && write(io, "\n**$year**\n")
38
for month in 12:-1:1
39
- ms = "0"^(1-div(month, 10)) * "$month"
+ ms = "0"^(month < 10) * "$month"
40
base = joinpath("blog", ys, ms)
41
isdir(base) || continue
42
posts = filter!(p -> endswith(p, ".md"), readdir(base))
0 commit comments