diff --git a/content/_index.md b/content/_index.md index 1e942c1..2446841 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,10 +1,10 @@ -+++ -title = 'jouf.fr' -date = 2025-03-20T22:44:33+01:00 -draft = false -description = "Accueil du site" -weight = 10 -+++ +--- +title: 'jouf.fr' +date: 2025-03-20T22:44:33+01:00 +draft: false +description: "Accueil du site" +weight: 10 +--- # Le site de stan diff --git a/hugo.toml b/hugo.toml index fe58ff2..ce7528d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -14,14 +14,14 @@ enableMissingTranslationPlaceholders = false # Source Code repository section description = "Bienvenue chez moi" - github_repository = "https://github.com/thingsym/hugo-theme-techdoc" + git_repository = "https://git.jouf.fr/stanislas/site-jouf" version = "0.1.0" # Documentation repository section # documentation repository (set edit link to documentation repository) - github_doc_repository = "https://github.com/thingsym/hugo-theme-techdoc" - github_doc_repository_branch = "master" - github_doc_repository_path = "" + git_doc_repository = "https://git.jouf.fr/stanislas/site-jouf" + git_doc_repository_branch = "main" + git_doc_repository_path = "" # Open Graph and Twitter Cards settings section # Open Graph settings for each page are set on the front matter. @@ -36,7 +36,7 @@ enableMissingTranslationPlaceholders = false # Documentation Menu section # Menu style settings - menu_style = "open-menu" # "open-menu" or "slide-menu" or "" blank is as no sidebar + menu_style = "slide-menu" # "open-menu" or "slide-menu" or "" blank is as no sidebar # Date format dateformat = "02/01/2006" # default "2 Jan 2006" diff --git a/layouts/partials/edit-page.html b/layouts/partials/edit-page.html new file mode 100644 index 0000000..c35e9f7 --- /dev/null +++ b/layouts/partials/edit-page.html @@ -0,0 +1,3 @@ +{{- if and .Site.Params.git_doc_repository .File -}} + Edit on jouf.fr forge +{{- end -}} diff --git a/layouts/partials/menu/slide-menu.html b/layouts/partials/menu/slide-menu.html new file mode 100644 index 0000000..1a2feaa --- /dev/null +++ b/layouts/partials/menu/slide-menu.html @@ -0,0 +1,58 @@ +{{$currentNode := .}} + + +{{define "slide-menu"}} +{{- $currentNode := .currentnode -}} +{{ with .sect }} +{{ if .IsSection }} +{{ if in .Site.Params.menu_exclusion .Section }} +{{- else -}} + {{- safeHTML .Params.head -}} + {{- $numberOfPages := (add (len .Pages) (len .Sections)) -}} +
  • {{ safeHTML .Params.Pre }}{{ .Title }}{{ safeHTML .Params.Post }}{{ if ne $numberOfPages 0 }}{{ if .IsAncestor $currentNode }}-{{ else }}+{{ end }}{{ end }} + {{ if ne $numberOfPages 0 }} + + {{end}} +
  • +{{- end -}} +{{- else -}} + {{- if not .Params.Hidden -}} +
  • {{ safeHTML .Params.Pre }}{{ .Title }}{{ safeHTML .Params.Post }}
  • + {{- end -}} +{{ end -}} +{{ end -}} +{{ end }}