change to hugo-blog-awesome theme

This commit is contained in:
Colmaris 2025-03-21 15:51:55 +01:00
parent 113e3650f1
commit 15b6142a8e
131 changed files with 5895 additions and 124 deletions

273
hugo.toml
View file

@ -1,122 +1,151 @@
baseURL = "https://colmaris.fr"
theme = ["risotto", "hugo-shortcode-gallery"]
title = "Colmaris's Blog"
author = "Colmaris"
copyright = "© 2025 [Colmaris](https://colmaris.fr) Ce site est sous licence [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.fr). Les photos ne sont pas libre de droit."
languageCode = "fr-FR"
defaultContentLanguage = "fr"
pygmentsstyle = "nordic"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
enableInlineShortcodes = true
# prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API.
# See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456
ignoreErrors = ["error-remote-getjson"]
pluralizeListTitles = false
# Automatically add content sections to main menu
sectionPagesMenu = "main"
[params]
noindex = false
[params.theme]
palette = "tender"
# Sidebar: about/bio
[params.about]
title = "Colmaris"
description = "Un geek qui a grandi avec internet."
# unicode/emoji logo:
#logo = "🍚"
# or use an image:
logo_image = "/favicon.svg"
# Sidebar: social links
# Available icon sets:
# * FontAwesome 6 <https://fontawesome.com/> ('fa-brands', 'fa-normal', or 'fa-solid' for brands)
# * Academicons <https://jpswalsh.github.io/academicons> ('ai ai-')
[[params.socialLinks]]
icon = "fa-solid fa-house"
title = "Accueil"
url = "https://colmaris.fr"
[[params.socialLinks]]
icon = "fa-brands fa-github"
title = "GitHub"
url = "https://github.com/colmaris"
[[params.socialLinks]]
icon = "fa-brands fa-mastodon"
title = "Mastodon"
url = "https://gts.colmaris.fr"
[[params.socialLinks]]
icon = "fa-solid fa-play"
title = "Peertube"
url = "https://video.colmaris.fr"
[menu]
[[menu.main]]
identifier = "post"
name = "Blog"
url = "/post/"
weight = 1
[[menu.main]]
identifier = "jardin"
name = "Jardin"
url = "/categories/jardin/"
weight = 2
[[menu.main]]
identifier = "notes"
name = "Notes"
url = "/notes/"
weight = 3
[[menu.main]]
identifier = "photo"
name = "photo"
url = "/categories/photo/"
weight = 4
[[menu.main]]
identifier = "the100pics"
name = "the100pics"
url = "/the100pics/"
weight = 5
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
# For hugo >= 0.60.0, enable inline HTML
[markup.goldmark.renderer]
unsafe = true
[markup]
# Table of contents
# Add toc = true to content front matter to enable
[markup.tableOfContents]
startLevel = 2
endLevel = 3
ordered = true
[privacy]
[privacy.vimeo]
disabled = false
simple = true
[privacy.instagram]
disabled = false
simple = true
[privacy.youtube]
disabled = false
privacyEnhanced = true
[services]
[services.instagram]
disableInlineCSS = true
title = "Colmaris's blog"
baseURL = 'https://colmaris.fr'
# This is what goes in <html lang="">
languageCode = 'fr-fr'
# This defines how dates are formatted
defaultContentLanguage = "fr-fr"
# Enable emojis globally
enableEmoji = true
ignoreErrors = ["additional-script-loading-error"] # ignore error of loading additional scripts.
# traditional way: theme component resides in directory 'themes'
theme = ["hugo-blog-awesome", "hugo-shortcode-gallery"]
# modern way: pull in theme component as hugo module
#[module]
# Uncomment the next line to build and serve using local theme clone declared in the named Hugo workspace:
# workspace = "hugo-blog-awesome.work"
#[module.hugoVersion]
#extended = true
#min = "0.87.0"
#[[module.imports]]
#path = "github.com/hugo-sid/hugo-blog-awesome"
#disable = false
[services]
# To enable Google Analytics 4 (gtag.js) provide G-MEASUREMENT_ID below.
# To disable Google Analytics, simply leave the field empty or remove the next two lines
[services.googleAnalytics]
id = '' # G-MEASUREMENT_ID
# To enable Disqus comments, provide Disqus Shortname below.
# To disable Disqus comments, simply leave the field empty or remove the next two lines
[services.disqus]
shortname = ''
# set markup.highlight.noClasses=false to enable code highlight
[markup]
[markup.highlight]
noClasses = false
[markup.goldmark.renderer]
unsafe = true
[markup.tableOfContents]
startLevel = 2 # ToC starts from H2
endLevel = 4 # ToC ends at H4
ordered = false # generates <ul> instead of <ol>
############################## French language ################################
[Languages.fr-fr]
languageName = "French"
languageCode = "fr-fr"
#contentDir = "content"
weight = 1
[Languages.fr-fr.menu]
[[Languages.fr-fr.menu.main]]
pageRef="posts"
name = 'Blog'
url = '/post/'
weight = 10
[[Languages.fr-fr.menu.main]]
pageRef="posts"
name = 'Jardin'
url = '/categories/jardin/'
weight = 20
[[Languages.fr-fr.menu.main]]
pageRef="posts"
name = 'Notes'
url = '/notes/'
weight = 30
[[Languages.fr-fr.menu.main]]
pageRef="posts"
name = 'Photo'
url = '/categories/photo/'
weight = 40
[[Languages.fr-fr.menu.main]]
pageRef="posts"
name = 'the100pics'
url = '/categories/the100pics/'
weight = 50
[[Languages.fr-fr.menu.main]]
pageRef="about"
name = 'À propos'
url = '/about/'
weight = 60
[Languages.fr-fr.params]
sitename = "Colmaris"
defaultColor = "dark" # set color mode: dark, light, auto
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
# the default value is set to 'auto'.
# You can take a look at layouts/index.html for more information.
description = "Un geek qui a grandi avec internet."
mainSections = ['post']
toc = true # set to false to disable table of contents 'globally'
tocOpen = false # set to true to open table of contents by default
goToTop = true # set to false to disable 'go to top' button
additionalScripts = ['js/custom.js', 'js/custom-2.js']
# Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'.
# Your custom scripts will be concatenated to one file `custom.js`.
# When building for production it will be minified.
# The file `custom.js` is loaded on each page (before body tag ends).
dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used.
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats.
rssFeedDescription = "full" # available options: 1) summary 2) full
# summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary .
# full - includes full blog post in the RSS feed. Generated using Hugo .Content .
# By default (or if nothing is specified), summary is used.
[Languages.fr-fr.params.author]
avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width
# Note: image is not rendered if the resource(avatar image) is not found. No error is displayed.
intro = "Bienvenue dans mon petit coin dinternet."
name = "Colmaris"
description = ""
# Allow to override webmanifest options
[Languages.fr-fr.params.webmanifest]
name = "sitename" # will use "params.sitename" or "title" by default
short_name = "" # same as name
start_url = "/" # will use homepage url by default
theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `<meta name="theme-color" />`
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
display = "standalone"
###################################################################
# Allow to override `browserconfig.xml` params (configuration for windows embedded browsers)
[params.browserconfig]
TileColor = "#2d89ef" # default windows 10 blue tile color
[[params.socialIcons]]
name = "github"
url = "https://github.com/colmaris"
[[params.socialIcons]]
name = "mastodon"
url = "https://gts.colmaris.fr"
[[params.socialIcons]]
name = "peertube"
url = "https://video.colmaris.fr"
[[params.socialIcons]]
name = "Rss"
url = "/index.xml"