From 8a56206e65046dcbab14d9b14d7926fbfaa653f1 Mon Sep 17 00:00:00 2001 From: yann64 Date: Thu, 29 Feb 2024 22:10:34 +0100 Subject: [PATCH] =?UTF-8?q?Refonte=20compl=C3=A8te=20(simplification)=20du?= =?UTF-8?q?=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 3 + config/_default/config.toml | 221 ----------------------------- config/_default/hugo.toml | 71 +++++++++ content/_index.md | 3 + content/archives.md | 5 + content/page/_default.en.md | 0 content/page/_default.fr.md | 0 content/page/computing/index.en.md | 17 --- content/page/computing/index.fr.md | 17 --- content/page/minecraft/index.en.md | 19 --- content/page/minecraft/index.fr.md | 19 --- content/posts/2023-10-16-hello.md | 11 ++ content/posts/_index.en.md | 6 - content/posts/_index.fr.md | 6 - content/posts/_index.md | 3 + content/posts/hello.en.md | 10 -- content/posts/hello.fr.md | 10 -- layouts/partials/footer.html | 24 ++++ themes/anubis | 1 + themes/hello-friend-ng | 1 - 20 files changed, 121 insertions(+), 326 deletions(-) delete mode 100644 config/_default/config.toml create mode 100644 config/_default/hugo.toml create mode 100644 content/_index.md create mode 100644 content/archives.md delete mode 100644 content/page/_default.en.md delete mode 100644 content/page/_default.fr.md delete mode 100644 content/page/computing/index.en.md delete mode 100644 content/page/computing/index.fr.md delete mode 100644 content/page/minecraft/index.en.md delete mode 100644 content/page/minecraft/index.fr.md create mode 100644 content/posts/2023-10-16-hello.md delete mode 100644 content/posts/_index.en.md delete mode 100644 content/posts/_index.fr.md create mode 100644 content/posts/_index.md delete mode 100644 content/posts/hello.en.md delete mode 100644 content/posts/hello.fr.md create mode 100644 layouts/partials/footer.html create mode 160000 themes/anubis delete mode 160000 themes/hello-friend-ng diff --git a/.gitmodules b/.gitmodules index 179cb0c..7354f2b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/config/_default/config.toml b/config/_default/config.toml deleted file mode 100644 index c997a2a..0000000 --- a/config/_default/config.toml +++ /dev/null @@ -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 — - # it’s 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 = 'CC BY-NC 4.0' - [languages.fr.params] - subtitle = "Le blog des Barbel" - -[languages] - [languages.en] - weight = 2 - copyright = 'CC BY-NC 4.0' - [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/" diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml new file mode 100644 index 0000000..becba9f --- /dev/null +++ b/config/_default/hugo.toml @@ -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 diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..c217f15 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ ++++ +author = "Yannick Barbel" ++++ diff --git a/content/archives.md b/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/content/archives.md @@ -0,0 +1,5 @@ +--- +date: 2019-05-28 +type: section +layout: "archives" +--- \ No newline at end of file diff --git a/content/page/_default.en.md b/content/page/_default.en.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/page/_default.fr.md b/content/page/_default.fr.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/page/computing/index.en.md b/content/page/computing/index.en.md deleted file mode 100644 index 9ae3735..0000000 --- a/content/page/computing/index.en.md +++ /dev/null @@ -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/) diff --git a/content/page/computing/index.fr.md b/content/page/computing/index.fr.md deleted file mode 100644 index 32b4657..0000000 --- a/content/page/computing/index.fr.md +++ /dev/null @@ -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/) diff --git a/content/page/minecraft/index.en.md b/content/page/minecraft/index.en.md deleted file mode 100644 index cf0d15e..0000000 --- a/content/page/minecraft/index.en.md +++ /dev/null @@ -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 diff --git a/content/page/minecraft/index.fr.md b/content/page/minecraft/index.fr.md deleted file mode 100644 index 3733dc4..0000000 --- a/content/page/minecraft/index.fr.md +++ /dev/null @@ -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 diff --git a/content/posts/2023-10-16-hello.md b/content/posts/2023-10-16-hello.md new file mode 100644 index 0000000..c9649a2 --- /dev/null +++ b/content/posts/2023-10-16-hello.md @@ -0,0 +1,11 @@ +--- +title: 'Hello, world!' +author: "Yannick Barbel" +date: 2023-10-16 +tags: [ + "divers", + "genealogie", +] +draft: false +--- + diff --git a/content/posts/_index.en.md b/content/posts/_index.en.md deleted file mode 100644 index 983063b..0000000 --- a/content/posts/_index.en.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -aliases = ["posts", "blog"] -title = "Articles" -authors = ["Yannick Barbel"] -tags = ["index"] -+++ \ No newline at end of file diff --git a/content/posts/_index.fr.md b/content/posts/_index.fr.md deleted file mode 100644 index 983063b..0000000 --- a/content/posts/_index.fr.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -aliases = ["posts", "blog"] -title = "Articles" -authors = ["Yannick Barbel"] -tags = ["index"] -+++ \ No newline at end of file diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..c217f15 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,3 @@ ++++ +author = "Yannick Barbel" ++++ diff --git a/content/posts/hello.en.md b/content/posts/hello.en.md deleted file mode 100644 index 4d1a87b..0000000 --- a/content/posts/hello.en.md +++ /dev/null @@ -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. diff --git a/content/posts/hello.fr.md b/content/posts/hello.fr.md deleted file mode 100644 index e626173..0000000 --- a/content/posts/hello.fr.md +++ /dev/null @@ -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. diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..afbe28c --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,24 @@ + diff --git a/themes/anubis b/themes/anubis new file mode 160000 index 0000000..8a718f7 --- /dev/null +++ b/themes/anubis @@ -0,0 +1 @@ +Subproject commit 8a718f7418c5f2500ec62ef818f352f923942b30 diff --git a/themes/hello-friend-ng b/themes/hello-friend-ng deleted file mode 160000 index 71cee08..0000000 --- a/themes/hello-friend-ng +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 71cee08f56058d234e830f2ec0fd28623b8b4dbd