From 6071e6fe199327c8b49e1ddd9a70ed3230fc30ab Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Mon, 19 Jun 2023 16:37:16 +0200 Subject: [PATCH] Improve home page Add social icons and a translated title to the home page Add translated links to the site menu --- config.toml | 85 +++++++++++++------ i18n/fr.toml | 1 + .../layouts/partials/menu.html | 2 +- 3 files changed, 60 insertions(+), 28 deletions(-) create mode 100644 i18n/fr.toml diff --git a/config.toml b/config.toml index ba07e29..7918759 100644 --- a/config.toml +++ b/config.toml @@ -2,9 +2,25 @@ baseURL = "https://faercol.me" languageCode = "en-us" defaultContentLanguage = "en" defaultContentLanguageInSubdir = true -title = "Melora Hugues" +title = "Melora's tech stuff" theme = "hello-friend-ng" 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. + +archetypeDir = "archetypes" +contentDir = "content" +dataDir = "data" +layoutDir = "layouts" +publishDir = "public" + +[author] + name = "Melora Hugues" + +[taxonomies] + category = "blog" + tags = "tags" + series = "series" [params] dateform = "2 Jan 2006" @@ -12,47 +28,62 @@ paginate = 10 dateformNum = "02-01-2006" dateformNumTime = "02-01-2006 15:04" - homeSubtitle = "Personal website and tech blog" disableReadOtherPosts = false enableSharingButtons = true enableGlobalLanguageMenu = true - description = "Melora Hugues - Personal website and tech blog" + description = "Personal website and tech blog for Melora Hugues" keywords = "blog, tech, dev" images = [""] + # Enable to add comment support + # [params.commento] + # url = "" + [params.footer] + trademark = true + rss = true + copyright = false + author = true -[taxonomies] - category = "blog" - tags = "tags" - series = "series" + [params.logo] + logoText = "Hello there!" + logoHomeLink = "/" + + [[params.social]] + name = "gitea" + url = "https://git.faercol.me" + + [[params.social]] + name = "github" + url = "https://github.com/aHugues" + + [[params.social]] + name = "linkedin" + url = "https://www.linkedin.com/in/huguesmel/" + + [[params.social]] + name = "email" + url = "mailto:contact@faercol.me" [languages] [languages.en] contentDir = "content/en" + [languages.en.params] + homeSubtitle = "Personal website and tech blog" [languages.fr] contentDir = "content/fr" - title = "Mon blog" + [languages.fr.params] + homeSubtitle = "Site personnel et blog technique" -[[menu.main]] - identifier = "blog" - name = "Blog" - url = "/posts" +[menu] + [[menu.main]] + identifier = "blog" + name = "Blog" + url = "/posts" -[[params.social]] - name = "gitea" - url = "https://git.faercol.me" - -[[params.social]] - name = "github" - url = "https://github.com/aHugues" - -[[params.social]] - name = "linkedin" - url = "https://www.linkedin.com/in/huguesmel/" - -[[params.social]] - name = "email" - url = "mailto:contact@faercol.me" + [[menu.main]] + identifier = "resume" + name = "Resume" + url = "https://resume.faercol.me" diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..133a314 --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1 @@ +resume = "CV" \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/partials/menu.html b/themes/hello-friend-ng/layouts/partials/menu.html index 2624414..2e9d5be 100644 --- a/themes/hello-friend-ng/layouts/partials/menu.html +++ b/themes/hello-friend-ng/layouts/partials/menu.html @@ -2,7 +2,7 @@