main: move Jekyll stuff to plugins/jekyll
If the user doesn't load the Jekyll plugin, then don't load any Jeykll stuff.pull/1969/head
parent
1c3a7ffdb3
commit
c0aad51afd
|
|
@ -137,13 +137,6 @@ elif [ -s /Applications/Preview.app ]; then
|
||||||
PREVIEW="/Applications/Preview.app"
|
PREVIEW="/Applications/Preview.app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load all the Jekyll stuff
|
|
||||||
|
|
||||||
if [ -e "$HOME/.jekyllconfig" ]; then
|
|
||||||
# shellcheck disable=SC1090
|
|
||||||
. "$HOME/.jekyllconfig"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# BASH_IT_RELOAD_LEGACY is set.
|
# BASH_IT_RELOAD_LEGACY is set.
|
||||||
if ! _command_exists reload && [[ -n "${BASH_IT_RELOAD_LEGACY:-}" ]]; then
|
if ! _command_exists reload && [[ -n "${BASH_IT_RELOAD_LEGACY:-}" ]]; then
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
|
|
|
||||||
|
|
@ -315,3 +315,8 @@ function deploysite() {
|
||||||
builtin cd "${SITE}" || return
|
builtin cd "${SITE}" || return
|
||||||
rsync -rz "${REMOTE?}"
|
rsync -rz "${REMOTE?}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Load the Jekyll config
|
||||||
|
if [[ -s "$HOME/.jekyllconfig" ]]; then
|
||||||
|
source "$HOME/.jekyllconfig"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue