Refonte complète (simplification) du site

This commit is contained in:
2024-02-29 22:10:34 +01:00
parent a6eb9abd43
commit 8a56206e65
20 changed files with 121 additions and 326 deletions

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "themes/hello-friend-ng"]
path = themes/hello-friend-ng
url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git
[submodule "themes/anubis"]
path = themes/anubis
url = https://github.com/mitrichius/hugo-theme-anubis.git

View File

@@ -1,221 +0,0 @@
baseURL = "https://barbel.synology.me"
title = "Blog de la famille Barbel"
languageCode = "fr-fr"
theme = "hello-friend-ng"
PygmentsCodeFences = true
PygmentsStyle = "monokai"
paginate = 10
rssLimit = 10 # Maximum number of items in the RSS feed.
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template.
# googleAnalytics = ""
# disqusShortname = ""
archetypeDir = "archetypes"
contentDir = "content"
dataDir = "data"
layoutDir = "layouts"
publishDir = "public"
buildDrafts = false
buildFuture = false
buildExpired = false
canonifyURLs = true
enableRobotsTXT = true
enableGitInfo = false
enableEmoji = true
enableMissingTranslationPlaceholders = false
disableRSS = false
disableSitemap = false
disable404 = false
disableHugoGeneratorInject = false
[permalinks]
posts = "/posts/:year/:month/:title/"
[author]
name = "Yannick Barbel"
[blackfriday]
hrefTargetBlank = true
[taxonomies]
tag = "tags"
category = "categories"
series = "series"
[params]
dateform = "Jan 2, 2006"
dateformShort = "Jan 2"
dateformNum = "2006-01-02"
dateformNumTime = "2006-01-02 15:04"
# Metadata mostly used in document's head
#
description = "Barbel family's blog"
keywords = ""
images = [""]
# Home subtitle of the index page.
#
homeSubtitle = "Misc stuff / Information diverses"
# Set a background for the homepage
# backgroundImage = "assets/images/background.jpg"
# Prefix of link to the git commit detail page. GitInfo must be enabled.
#
# gitUrl = ""
# Set disableReadOtherPosts to true in order to hide the links to other posts.
#
disableReadOtherPosts = false
# Enable theme toggle
#
# This options enables the theme toggle for the theme.
# Per default, this option is off.
# The theme is respecting the prefers-color-scheme of the operating system.
# With this option on, the page user is able to set the scheme he wants.
enableThemeToggle = true
# Sharing buttons
#
# There are a lot of buttons preconfigured. If you want to change them,
# generate the buttons here: https://sharingbuttons.io
# and add them into your own `layouts/partials/sharing-buttons.html`
#
enableSharingButtons = true
# Global language menu
#
# Enables the global language menu.
#
enableGlobalLanguageMenu = true
# Integrate Javascript files or stylesheets by adding the url to the external assets or by
# linking local files with their path relative to the static folder, e.g. "css/styles.css"
#
customCSS = []
customJS = []
# Toggle this option need to rebuild SCSS, requires extended version of Hugo
#
justifyContent = false # Set "text-align: justify" to .post-content.
# Integrate Plausible.io
# plausibleDataDomain = 'test.com'
# plausibleScriptSource = 'https://plausible.io/js/script.js'
# Custom footer
# If you want, you can easily override the default footer with your own content.
#
[params.footer]
trademark = 2023
rss = true
copyright = true
author = true
topText = []
bottomText = []
# Colors for favicons
#
[params.favicon.color]
mask = "#1b1c1d"
msapplication = "#1b1c1d"
theme = "#1b1c1d"
[params.logo]
logoMark = ">"
logoText = "$ cd /home/"
logoHomeLink = "/"
# Set true to remove the logo cursor entirely.
# logoCursorDisabled = false
# Set to a valid CSS color to change the cursor in the logo.
# logoCursorColor = "#67a2c9"
# Set to a valid CSS time value to change the animation duration, "0s" to disable.
# logoCursorAnimate = "2s"
# Append the current url pathname to logoText
# logoCursorPathname = true
# Commento is more than just a comments widget you can embed —
# its a return to the roots of the internet.
# An internet without the tracking and invasions of privacy.
# An internet that is simple and lightweight.
# An internet that is focused on interesting discussions, not ads.
# A better internet.
# Uncomment this to enable Commento.
#
# [params.commento]
# url = ""
# Uncomment this if you want a portrait on your start page
#
[params.portrait]
path = "/img/portrait.jfif"
alt = "Portrait"
maxWidth = "50px"
# Social icons
# [[params.social]]
# name = "twitter"
# url = "https://twitter.com/yannickbarbel"
# [[params.social]]
# name = "mastodon"
# url = "https://mastodon.social/@yann64"
# [[params.social]]
# name = "email"
# url = "mailto:yannick.barbel@sfr.fr"
# [[params.social]]
# name = "github"
# url = "https://github.com/yann64"
# [[params.social]]
# name = "linkedin"
# url = "https://www.linkedin.com/in/yannick-barbel-83534525/"
#[[params.social]]
#name = "stackoverflow"
#url = "https://www.stackoverflow.com/"
[languages.fr]
weight = 1
copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
[languages.fr.params]
subtitle = "Le blog des Barbel"
[languages]
[languages.en]
weight = 2
copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
[languages.en.params]
subtitle = "Barbel family's blog"
[menu]
#[[menu.main]]
#identifier = "about"
#name = "About"
#url = "about/"
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "posts/"
[[menu.main]]
identifier = "genealogy"
name = "Généalogie"
url = "webtrees/"
[[menu.main]]
identifier = "minecraft"
name = "Minecraft"
url = "page/minecraft/"
[[menu.main]]
identifier = "computing"
name = "Computing"
url = "page/computing/"

71
config/_default/hugo.toml Normal file
View File

@@ -0,0 +1,71 @@
baseURL = "https://barbel.synology.me"
languageCode = "fr-fr"
title = "Yann64"
theme = "anubis"
paginate = 3
[author]
name = "Yannick Barbel"
[params]
author = "Yannick Barbel"
description = "Yannick Barbel a.k.a Yann64"
dateFormat = "2006-01-02"
paginationSinglePost = true
style = "auto"
readMore = true
readNextPosts = 2
copyCodeButton = true
rssAsSocialIcon = true
mathjax = false
# Graphcomment support
graphcommentId = ""
# utteranc.es support
utterancesRepo = "" # mandatory
utterancesTheme = "" # optional
utterancesIssue = "" # optional
utterancesLabel = "" # optional
# Giscus support
GiscusRepo = "" # mandatory
GiscusRepoId = "" # mandatory
GiscusCategory = "Announcements" # mandatory
GiscusCategoryId = "" # mandatory
GiscusLazyLoad = false # optional
[[params.social]]
id = "mastodon"
url = "https://mastodon.social/@yann64"
[[params.social]]
id = "github"
url = "https://git.barbel.synology.me/yann64"
[menu]
[[menu.main]]
name = "Blog"
identifier = "articles"
url = "/posts/"
weight = 1
[[menu.main]]
name = "Fond Généalogique"
identifier = "genealogie"
url = "/webtrees/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 3
[taxonomies]
category = "categories"
tag = "tags"
[markup.goldmark.renderer]
unsafe = true

3
content/_index.md Normal file
View File

@@ -0,0 +1,3 @@
+++
author = "Yannick Barbel"
+++

5
content/archives.md Normal file
View File

@@ -0,0 +1,5 @@
---
date: 2019-05-28
type: section
layout: "archives"
---

View File

@@ -1,17 +0,0 @@
---
title: 'Computing resources'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "dev"
category: "computing"
draft: false
---
## Private git hosting
- Private Gitea instance : [https://git.barbel.synology.me/](https://git.barbel.synology.me/)
## Haiku & BeOS mirrors/archives
- Haiku site mirror : [https://barbel.synology.me/haiku/](https://barbel.synology.me/haiku/)
- Old BeOS site mirror : [https://barbel.synology.me/museum/beos/](https://barbel.synology.me/museum/beos/)

View File

@@ -1,17 +0,0 @@
---
title: 'Ressources informatiques'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "dev"
category: "informatique"
draft: false
---
## Dépôts git personnels
- Instance Gitea privée : [https://git.barbel.synology.me/](https://git.barbel.synology.me/)
## Haiku & BeOS mirrors/archives
- Mirroir du site du projet Haiku : [https://barbel.synology.me/haiku/](https://barbel.synology.me/haiku/)
- Mirroir de l'ancien site de BeOS : [https://barbel.synology.me/museum/beos/](https://barbel.synology.me/museum/beos/)

View File

@@ -1,19 +0,0 @@
---
title: 'Minecraft Servers'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "minecraft"
category: "minecraft"
draft: false
---
## Minecraft Java Servers
- Survival : barbel.synology.me:25565
- Creative : barbel.synology.me:25566
- Maps : [https://barbel.synology.me/bluemap/](https://barbel.synology.me/bluemap/)
## Minecraft Bedrock Servers
- Survival : barbel.synology.me:19132
- Creative : barbel.synology.me:19134

View File

@@ -1,19 +0,0 @@
---
title: 'Serveurs Minecraft'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "minecraft"
category: "minecraft"
draft: false
---
## Serveurs Minecraft Java
- Survie : barbel.synology.me:25565
- Créatif : barbel.synology.me:25566
- Carte : [https://barbel.synology.me/bluemap/](https://barbel.synology.me/bluemap/)
## Serveurs Minecraft Bedrock
- Survie : barbel.synology.me:19132
- Créatif : barbel.synology.me:19134

View File

@@ -0,0 +1,11 @@
---
title: 'Hello, world!'
author: "Yannick Barbel"
date: 2023-10-16
tags: [
"divers",
"genealogie",
]
draft: false
---

View File

@@ -1,6 +0,0 @@
+++
aliases = ["posts", "blog"]
title = "Articles"
authors = ["Yannick Barbel"]
tags = ["index"]
+++

View File

@@ -1,6 +0,0 @@
+++
aliases = ["posts", "blog"]
title = "Articles"
authors = ["Yannick Barbel"]
tags = ["index"]
+++

3
content/posts/_index.md Normal file
View File

@@ -0,0 +1,3 @@
+++
author = "Yannick Barbel"
+++

View File

@@ -1,10 +0,0 @@
---
title: 'Hello, world!'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "haiku"
category: "haiku"
draft: false
---
A website to communicate on our hobbies.

View File

@@ -1,10 +0,0 @@
---
title: 'Hello, world!'
author: "yann64"
date: 2023-10-16T09:03:20
tag: "haiku"
category: "haiku"
draft: false
---
Un site pour échanger sur nos hobbies.

View File

@@ -0,0 +1,24 @@
<footer class="common-footer">
{{ $languagesCount := $.Site.Home.AllTranslations }}
{{ if gt $languagesCount 1 }}
{{ partial "language-switcher.html" . }}
{{ end }}
<div class="common-footer-bottom">
{{ if .Site.Menus.footer }}
{{ $currentPage := . }}
<ul class="footer-menu">
{{ range .Site.Menus.footer }}
<li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
<div class="copyright">
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
{{ partial "footer-extra.html" . }}
</p>
</div>
</div>
{{ partial "h-card.html" . }}
</footer>

1
themes/anubis Submodule

Submodule themes/anubis added at 8a718f7418