Skip to content

Commit 3edc23b

Browse files
authored
remove separator for current year (#788)
1 parent c891e47 commit 3edc23b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ end
3030
Plug in the list of blog posts contained in the `/blog/` folder.
3131
"""
3232
function hfun_blogposts()
33+
curyear = Dates.Year(Dates.today()).value
3334
io = IOBuffer()
34-
for year in 2020:-1:2012
35+
for year in curyear:-1:2012
3536
ys = "$year"
36-
write(io, "\n**$year**\n")
37+
year < curyear && write(io, "\n**$year**\n")
3738
for month in 12:-1:1
3839
ms = "0"^(1-div(month, 10)) * "$month"
3940
base = joinpath("blog", ys, ms)

0 commit comments

Comments
 (0)