summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hugo.toml2
-rwxr-xr-xpublic/thesiah.sh11
-rwxr-xr-xstatic/thesiah.sh11
-rw-r--r--themes/itheme/exampleSite/config.toml2
4 files changed, 8 insertions, 18 deletions
diff --git a/hugo.toml b/hugo.toml
index 4b91591..b9f0a34 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -2,7 +2,7 @@ baseURL = 'https://thesiah.xyz/'
languageCode = 'en-us'
title = 'THESIAH'
defaultContentLanguage = "en"
-paginate = "7"
+pagination.pagerSize = "7"
theme = "spectral"
#googleAnalytics = "G-XXXXXXXXXX"
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 264a8c8..fb88f44 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -514,14 +514,9 @@ cronsetup() {
pacman -Qq cronie-"$initsys" >/dev/null 2>&1 || installpkg cronie-"$initsys"
}
sleep 1
- printf '*/3 * * * * /usr/bin/mailsync
-*/15 * * * * /home/$name/.local/bin/cron/newsup
-0 */3 * * * /usr/bin/pacman -Sy
-0 0 * * * NVIM_APPNAME=Starter nvim --headless "+Lazy! sync" +qa
-0 * * * * NVIM_APPNAME=LazyVim nvim --headless "+Lazy! sync" +qa
-0 0 * * * NVIM_APPNAME=NvChad nvim --headless "+Lazy! sync" +qa
-0 * * * * /usr/bin/nvim --headless "+Lazy! sync" +qa
-@daily /usr/bin/trash-empty 30' | crontab -u $name -
+ [ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/crons ] &&
+ crontab -u "$name" - <"${XDG_CONFIG_HOME:-$HOME/.config}"/crons &&
+ rm "${XDG_CONFIG_HOME:-$HOME/.config}"/crons
sleep 3
case "$initsys" in
"runit")
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 264a8c8..fb88f44 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -514,14 +514,9 @@ cronsetup() {
pacman -Qq cronie-"$initsys" >/dev/null 2>&1 || installpkg cronie-"$initsys"
}
sleep 1
- printf '*/3 * * * * /usr/bin/mailsync
-*/15 * * * * /home/$name/.local/bin/cron/newsup
-0 */3 * * * /usr/bin/pacman -Sy
-0 0 * * * NVIM_APPNAME=Starter nvim --headless "+Lazy! sync" +qa
-0 * * * * NVIM_APPNAME=LazyVim nvim --headless "+Lazy! sync" +qa
-0 0 * * * NVIM_APPNAME=NvChad nvim --headless "+Lazy! sync" +qa
-0 * * * * /usr/bin/nvim --headless "+Lazy! sync" +qa
-@daily /usr/bin/trash-empty 30' | crontab -u $name -
+ [ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/crons ] &&
+ crontab -u "$name" - <"${XDG_CONFIG_HOME:-$HOME/.config}"/crons &&
+ rm "${XDG_CONFIG_HOME:-$HOME/.config}"/crons
sleep 3
case "$initsys" in
"runit")
diff --git a/themes/itheme/exampleSite/config.toml b/themes/itheme/exampleSite/config.toml
index 34fb6c6..797509a 100644
--- a/themes/itheme/exampleSite/config.toml
+++ b/themes/itheme/exampleSite/config.toml
@@ -5,7 +5,7 @@ hasCJKLanguage = true
title = 'Apple Newsroom'
copyright = 'Floyd Li'
theme = 'hugo-theme-itheme'
-paginate = 5
+pagination.pagerSize = 5
[params]
defaultCover = 'https://www.apple.com.cn/newsroom/images/apple-logo_black.jpg.landing-regular_2x.jpg'
email = 'floyd.li@outlook.com'