Remplacement generation config.toml par config.toml statique + ancien site et menu

This commit is contained in:
jeanjack 2022-05-14 19:19:38 +02:00
parent 9f41109945
commit 371be7b0cd
35 changed files with 2758 additions and 21 deletions

View file

@ -1,6 +1,6 @@
include var.mk
all: init config build
all: init build oldsite
init:
touch .gitmodules
@ -8,20 +8,14 @@ init:
git submodule init
git submodule update
config:
echo "baseURL = '${base_url}'" > config.toml
echo "languageCode = 'fr-fr'" >> config.toml
echo "title = 'Fuz.re'" >> config.toml
echo "theme = '${theme}'" >> config.toml
echo "[params]" >> config.toml
echo "centerTheme = true" >> config.toml
echo "[languages.en.params.logo]" >>config.toml
echo "logoText = 'FuZ'" >>config.toml
build:
hugo -t $(theme)
oldsite:
mkdir -p public
rm -fR public/contact
cp -a contact public/contact
run:
hugo server --bind ${bind_ip} --port ${bind_port}
@ -32,9 +26,9 @@ clean:
mrproper: clean
rm .gitmodules || :
git config --remove-section submodule.${git_submodulename} || :
rm -rvf .git/modules/themes || :
rm -rvf themes/* || :
git config --remove-section submodule.${git_submodulename} || :
rm -rvf .git/modules/themes || :
rm -rvf themes/* || :
git rm --cached .gitmodules ${git_submodulename} || :
rm -rvf resources || :
help: