commit 7c61119de94215b1418485590bbda731f790717a Author: Mathieu Limonier Date: Thu Nov 19 18:31:31 2026 +0100 Base de site une page avec le thème Hugo Scroll Ajoute content/_index.md (en-tête) et content/homepage/index.md (headless bundle) pour afficher les sections de la page d'accueil. Co-Authored-By: Claude Opus 5.5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5133fd3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Sortie et cache générés par Hugo +public/ +resources/_gen/ +.hugo_build.lock +hugo_cache/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a30354d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-scroll"] + path = themes/hugo-scroll + url = https://github.com/zjedi/hugo-scroll.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/assets/images/cover-image.jpg b/assets/images/cover-image.jpg new file mode 100644 index 0000000..6bdb62c Binary files /dev/null and b/assets/images/cover-image.jpg differ diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 0000000..64d1e20 Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..c37b9b4 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,16 @@ +--- +# Image de fond de l'en-tête (dans assets/images/). Image d'exemple du thème, à remplacer. +header_image: "images/cover-image.jpg" +header_use_video: false + +# Logo optionnel au-dessus du titre +# header_logo: "images/logo.png" + +# Titres de l'en-tête (HTML autorisé : b, i, u, br) +header_headline: "Mon site" +header_subheadline: "Base de site une page avec Hugo Scroll" + +# Entrée « Retour en haut » dans le menu de navigation +nav_to_top_title: "Retour en haut" +nav_to_top_weight: last +--- diff --git a/content/homepage/coucou.md b/content/homepage/coucou.md new file mode 100644 index 0000000..22f69e8 --- /dev/null +++ b/content/homepage/coucou.md @@ -0,0 +1,22 @@ +--- +title: 'Coucou' + +# The "header_menu_title" value will be used as text for header buttons. +# The "title" value will be used if value for "header_menu_title" is not provided. +#header_menu_title: 'Short Menu Title' + +# The "navigation_menu_title" value will be used as text for fixed menu items. +# The "title" value will be used if value for "navigation_menu_title" is not provided. +#navigation_menu_title: 'Short Menu Title' + +# The "weight" will determine where this section appears on the "homepage". +# A bigger weight will place the content more towards the bottom of the page. +# It's like gravity ;-). +weight: 5 + +# If "header_menu" is true, then a button linking to this section will be placed +# into the header menu at the top of the homepage. +header_menu: true +--- + +This is just another section to appear on the homepage. diff --git a/content/homepage/index.md b/content/homepage/index.md new file mode 100644 index 0000000..ca03031 --- /dev/null +++ b/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless: true +--- diff --git a/content/homepage/welcom.md b/content/homepage/welcom.md new file mode 100644 index 0000000..3e01003 --- /dev/null +++ b/content/homepage/welcom.md @@ -0,0 +1,14 @@ +--- +title: "Welcome" +weight: 1 +--- + +`Hugo-Scroll` theme alternates colors of sections that are placed on single page. +The landing screen is meant to be visually striking. + +Single-page approach is oriented towards small to medium content length, that won't overwhelm the user. +You can also delegate lengthier, less important or more sizeable content to [dedicated pages](services). + +> The belly rules the mind. --- spanish proverb + +By the way this welcome section won't show in the cover menu. \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..45f1263 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,102 @@ +baseURL = 'https://example.org/' +languageCode = 'fr-fr' +title = 'My New Hugo Site' +theme = 'hugo-scroll' + +# This is a "one page"-website, so we do not need these kinds of pages... +disableKinds = ["section", "taxonomy", "term", "RSS", "robotsTXT"] + +defaultContentLanguage = "fr" + +# In order to add version information in the page's footer set to true. +# enableGitInfo = true + +# enable emoji processing in Markdown (valid only for pure markdown content) +enableEmoji = true + +# Theme-specific variables `.Site.Params.myParamName` +[params] + + # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. + favicon = "images/favicon.png" + + # These "images" are used for the structured data templates. This will show up, when + # services like Twitter or Slack want to generate a preview of a link to your site. + # See https://gohugo.io/templates/internal#twitter-cards and https://gohugo.io/templates/internal#open-graph. + # NOT the actual header background image, go to _index.md instead + images = ["images/cover-image.jpg"] + + # When set true, it creates a visual guard (partially transparent rounded box), preventing non-ideal background images from interfering with title/description headings + # Ideal images are homogenous around the centre and contrasting to the text. + # see CSS classes: .title-and-description-guard, .blog-title, .blog-description + # see _index.md header_headline and header_subheadline + title_guard = false + + # Another "title" :-). This one is used as the site_name on the Hugo's internal + # opengraph structured data template. + # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. + title = "Jane Doe - Nutrition Coach & Chef Consultant" + + # The "description" of your website. This is used in the meta data of your generated html. + description = "Nutrition Coach & Chef Consultant" + + # Show a menu of languages available + language_menu = true + + # Show also a language menu item for the current language, if false only + # show the remaining languages + show_current_lang = true + + # A "copyright"-line to be added at the bottom of the page. + # Hint: Plain HTML is supported in here as well. So you may e.g. add a link to your legal imprint-page. + copyright = "© Jane Doe" + + # This theme will, by default, inject a design-by-line at the bottom of the page. + # You can turn it off, but we would really appreciate if you don’t :-) + hidedesignbyline = false + + # The sections of the home page alternate styling. Mark invert as true to swap the styling of the sections + invertSectionColors = false + + # Options used for automatic image generation. see: https://gohugo.io/content-management/image-processing/ + image_options = "webp q90 lanczos photo" + + # Use "page_title | site_title" for tags + # e.g. <title>Legal | Jane Doe - Nutrition Coach & Chef Consultant + combine_page_and_site_title = false + + [params.footer] + # Show contact icons for email/phone (if specified) in the footer of the page + showContactIcons = false + + # Show links indicated with footer_menu and footer_menu_title in the footer of the page + showFooterLinks = false + + [params.meta] + keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such" + + [[params.contacts]] + label = "phone" + value = "+49 1111 555555" + url = "tel:+49 1111 555555" + icon = "fa fa-phone" + + [[params.contacts]] + label = "email" + value = "mail@janedoe.com" + url = "mailto:mail@janedoe.com" + icon = "fa fa-envelope" + + [[params.contacts]] + label = "GitHub" + value = "github.com/zjedi/hugo-scroll" + url = "https://github.com/zjedi/hugo-scroll" + icon = "fa-brands fa-github" + + # Add additional contacts here! + # [[params.contacts]] + # label = "" + # value = "" + # url = "" + # icon = "" + diff --git a/themes/hugo-scroll b/themes/hugo-scroll new file mode 160000 index 0000000..54f7b85 --- /dev/null +++ b/themes/hugo-scroll @@ -0,0 +1 @@ +Subproject commit 54f7b8543f18d6ae54490f5bb11ea1905bfeffd7