From c5eed405c49ba689aa9c3db65657ffda82b1a708 Mon Sep 17 00:00:00 2001 From: stanislas Date: Fri, 21 Mar 2025 22:47:07 +0100 Subject: [PATCH] =?UTF-8?q?Refonte=20l=C3=A9g=C3=A8re=20Suppression=20des?= =?UTF-8?q?=20r=C3=A9f=C3=A9rences=20=C3=A0=20Twitter=20et=20Google=20Anal?= =?UTF-8?q?ytics=20Corrections=20mineures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 +++++++++++++++++++++++++++++++ content/_index.md | 11 ----------- hugo.toml | 10 ++-------- layouts/partials/head.html | 27 +++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 README.md create mode 100644 layouts/partials/head.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..13a75cc --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# Le site de stan + +Ici se trouve mon site fait avec Hugo. +Encore en construction, je teste plusieurs thèmes et configurations. + +## Publication + +Pour publier le site, je le fais avec [rclone][rclone] + +[rclone]: https://rclone.org/ + +Je l'ai configuré pour pouvoir pousser en SFTP. +On considérera que la configuration est sauvegardée sous le nom `accueil` pour la suite. + +Il faut tout d'abord construire (`build`) le site avec la commande + +```shell +hugo +``` + +ce qui crée +un répertoire `public` et un autre `resources` qui transforment tous les fichiers en +HTML intelligible par un navigateur. + +Ensuite je lance + +```shell +rclone sync public/ accueil:www/ +``` + +On attend quelques secondes et hop c'est disponible à l'adresse https://jouf.fr/accueil/ diff --git a/content/_index.md b/content/_index.md index 44c7a11..1e942c1 100644 --- a/content/_index.md +++ b/content/_index.md @@ -12,14 +12,3 @@ Ici c'est chez moi, je fais ce que je veux, na ! Pour l'instant ce site est en construction, mais on espère qu'il sera très vite en place et utilisable. - -L'objectif premier est de me familiariser avec la création de contenu sur le web. -Je commence avec ce site fait avec [Hugo][hugo-url]. - -Ce site contiendra sûrement aussi des trucs et astuces qui m'ont servis et que je -pourrai retrouver plus tard si besoin, mais que d'autres personnes aussi pourront -consulter si nécessaire ! - - - -[hugo-url]: https://gohugo.io/ diff --git a/hugo.toml b/hugo.toml index 037691a..fe58ff2 100644 --- a/hugo.toml +++ b/hugo.toml @@ -23,16 +23,10 @@ enableMissingTranslationPlaceholders = false github_doc_repository_branch = "master" github_doc_repository_path = "" - # Analytic section - google_analytics_id = "" # Your Google Analytics tracking id - tag_manager_container_id = "" # Your Google Tag Manager container id - google_site_verification = "" # Your Google Site Verification for Search Console - # Open Graph and Twitter Cards settings section # Open Graph settings for each page are set on the front matter. # See https://gohugo.io/templates/internal/#open-graph - # See https://gohugo.io/templates/internal/#twitter-cards - title = "Hugo Techdoc Theme" + title = "Le site de stan" # Theme settings section # Theme color @@ -61,7 +55,7 @@ enableMissingTranslationPlaceholders = false # Algolia site search section # See https://www.algolia.com/doc/ algolia_search_enable = true - algolia_indexName = "hugo-demo-techdoc" + algolia_indexName = "stan-site" algolia_appId = "7W4SAN4PLK" algolia_apiKey = "cbf12a63ff72d9c5dc0c10c195cf9128" # Search-Only API Key diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..eb64919 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,27 @@ + + + +{{- if eq .Title "" }} +{{ .Site.Title }} +{{- else }} +{{ .Title }} - {{ .Site.Title }} +{{- end }} +{{- if ne .Description "" }} + +{{- else if isset .Site.Params "description" }} + +{{- end }} +{{ hugo.Generator }} + + + +{{ partial "meta/chroma.html" . -}} + + + + + +{{- partial "meta/tag-manager.html" . -}} +{{- partial "custom-css.html" . -}} +{{- template "_internal/opengraph.html" . -}} +{{- template "_internal/schema.html" . -}}