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 <noreply@anthropic.com>
This commit is contained in:
commit
7c61119de9
11 files changed
+171
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
# Sortie et cache générés par Hugo
|
||||||
|
public/
|
||||||
|
resources/_gen/
|
||||||
|
.hugo_build.lock
|
||||||
|
hugo_cache/
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "themes/hugo-scroll"]
|
||||||
|
path = themes/hugo-scroll
|
||||||
|
url = https://github.com/zjedi/hugo-scroll.git
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
+++
|
||||||
|
date = '{{ .Date }}'
|
||||||
|
draft = true
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
+++
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 698 B |
@@ -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 <b>une page</b> 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
|
||||||
|
---
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
headless: true
|
||||||
|
---
|
||||||
@@ -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.
|
||||||
@@ -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 <title> tags
|
||||||
|
# e.g. <title>Legal | Jane Doe - Nutrition Coach & Chef Consultant</title>
|
||||||
|
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 = ""
|
||||||
|
|
||||||
Submodule
+1
Submodule themes/hugo-scroll added at 54f7b8543f.
Reference in new issue
Block a user