diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..364fdec1aa19d3a1f8d926d500c0beffe5674be8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..06c87e03d50cb5a59886d482831580c08d88bc2a --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: help hugobuild + +path=/sites/petitgraindepeau/ +ssh=simon@192.168.122.179 + +help: ## Affiche cette aide + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' + +hugobuild: ## Déploi le site hugo à distance + git submodule update --recursive --remote # Met à jour les sous-modules git + hugo + rsync -av ./public/ $(ssh):$(path) diff --git a/config.toml b/config.toml index c1be0472ca5457dd477dd9bba9a2a06861785695..221d001fd1e512e770ba72a5d3e70e6abee61c39 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ title = "Petit Grain de Peau" -baseURL = "https://www.example.com" +baseURL = "http://petitgraindepeau.localhost/" languageCode = "fr-fr" DefaultContentLanguage = "fr" theme = "airspace" diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000000000000000000000000000000000000..78d396fc8496f0739306f92985f84482da7f74c1 --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1,24 @@ + + + + {{ partial "head.html" . }} + + + + {{ partial "header.html" . }} + + {{ if isset .Params "id" }} + {{ partial .Params.id . }} + {{ else }} +
{{ .Content }}
+ {{ end }} + + + + {{ partial "footer.html" . }} + + + + diff --git a/layouts/partials/de-fil-en-aiguille.html b/layouts/partials/de-fil-en-aiguille.html index 77d38c9020d870154e1694f96f6395c6bcfdb8db..76657cdf49f1cbfaaf383c45c88224649060507d 100644 --- a/layouts/partials/de-fil-en-aiguille.html +++ b/layouts/partials/de-fil-en-aiguille.html @@ -83,5 +83,3 @@ - -{{ partial "call-to-action.html" .Site.Data.work.call }} diff --git a/themes/airspace b/themes/airspace index 4d60364253d650bbc0aa0c3f92413a227f529c3f..cf177e69f16a969b93de9c424314d25681f59265 160000 --- a/themes/airspace +++ b/themes/airspace @@ -1 +1 @@ -Subproject commit 4d60364253d650bbc0aa0c3f92413a227f529c3f +Subproject commit cf177e69f16a969b93de9c424314d25681f59265