diff --git a/R/fetch.R b/R/fetch.R index fd664a18b2..d7153a1894 100644 --- a/R/fetch.R +++ b/R/fetch.R @@ -54,10 +54,10 @@ if(NROW(x)>0){ write.csv(m[order(m$update), , drop = FALSE], f, row.names = FALSE) -# only keep the recent n-day (i.e. n = 3) markdown files in post directory -n = 3 -d = Sys.Date() -p2 = list.files('content/post/', '^\\d{4,}-\\d{2}-\\d{2}-\\d{1,}[.]md$') -z = as.Date(gsub('-\\d{1,}.md$', '', p2)) < (d-n) -m = length(z[z==TRUE]) -file.remove(file.path('content/post/', p2[1:m])) +# # only keep the recent n-day (i.e. n = 3) markdown files in post directory +# n = 3 +# d = Sys.Date() +# p2 = list.files('content/post/', '^\\d{4,}-\\d{2}-\\d{2}-\\d{1,}[.]md$') +# z = as.Date(gsub('-\\d{1,}.md$', '', p2)) < (d-n) +# m = length(z[z==TRUE]) +# file.remove(file.path('content/post/', p2[1:m])) diff --git a/config.toml b/config.toml index 39bb2bd810..726d7eed59 100644 --- a/config.toml +++ b/config.toml @@ -9,7 +9,6 @@ preserveTaxonomyNames = true footnotereturnlinkcontents = "↩" hasCJKLanguage = true enableEmoji = true -paginate = 9 [[menu.main]] name = "Home" diff --git a/themes/hugo-xmag/layouts/_default/list.html b/themes/hugo-xmag/layouts/_default/list.html index 5b2fd27c2b..326e3f1d89 100644 --- a/themes/hugo-xmag/layouts/_default/list.html +++ b/themes/hugo-xmag/layouts/_default/list.html @@ -2,8 +2,7 @@